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

detects live, dead and premium links.

目前為 2015-07-12 提交的版本,檢視 最新版本

  1. //fixed datafile.com false premium, fixed oboom.com showing some dead links as temp unavailable, added swoopshare.com(works out of code only so far)
  2.  
  3. // ==UserScript==
  4. // @name W.A.R. Links Checker Customized Premium Link Version
  5. // @description detects live, dead and premium links.
  6. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  7. // @namespace premium version
  8. // @version 1.1.6.1
  9. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  10. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  11. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  12. // @include http://*
  13. // @include https://*
  14. // @include file:///*
  15. // @grant GM_setValue
  16. // @grant GM_getValue
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_log
  19. // @grant GM_addStyle
  20. // @grant GM_registerMenuCommand
  21. // @grant GM_getResourceText
  22. // @grant GM_info
  23. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  24. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  25. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  26. // @homepage http://www.mentalps.5gbfree.com
  27. // @namespace http://www.mentalps.5gbfree.com
  28. // @noframes
  29. // ==/UserScript==
  30.  
  31. //separate alternative domains with "|" char (first name is considered being main)
  32. var allHostNames = [
  33. "1fichier.com|dl4free.com",
  34. "4upld.com",
  35. "swoopshare.com",
  36. "newfileland.com",
  37. "2shared.com",
  38. "fileupload.pw",
  39. "zxcfiles.com",
  40. "up07.net",
  41. "4shared.com",
  42. "adrive.com",
  43. "aisfile.com",
  44. "hexupload.com",
  45. "bezvadata.cz",
  46. "burnupload.com|burnupload.ihiphop.com",
  47. "xkeepfile.com|Gamesena.com",
  48. // "firedrive.com",
  49. "usersfiles.com",
  50. "pan.baidu.com",
  51. "radicalshare.com",
  52. "cramit.in|cramitin.net",
  53. "datei.to",
  54. "daten-hoster.de|filehosting.org|xtraupload.de",
  55. "demo.ovh.eu",
  56. "depositfiles.com",
  57. "divshare.com",
  58. "easy-share.com|crocko.com",
  59. "easybytez.com",
  60. "edisk.cz",
  61. "euroshare.eu",
  62. "file-upload.net",
  63. "yadi.sk",
  64. "ryushare.com",
  65. "wizupload.com",
  66. "fastshare.cz",
  67. "filefactory.com",
  68. "share.vnn.vn",
  69. "yunpan.cn",
  70. "gulfup.com",
  71. "tropicshare.com",
  72. "cloudzilla.to",
  73. "inclouddrive.com",
  74. "fileflyer.com",
  75. "filerio.com|filekeen.com",
  76. "up.4share.vn",
  77. "upfile.vn",
  78. "datafilehost.com",
  79. "fileband.com",
  80. "worldbytez.com",
  81. "files.mail.ru",
  82. "filepost.com|fp.io",
  83. "filesflash.com",
  84. "box.com",
  85. "box.net",
  86. "goldbytez.com",
  87. "sdilej.cz",
  88. "ex-load.com",
  89. "2drive.net",
  90. "filesmonster.com",
  91. "filestore.to",
  92. "freakshare.net",
  93. "hulkload.com",
  94. "filedropper.com",
  95. "free-uploading.com",
  96. "gamefront.com|filefront.com",
  97. "gettyfile.ru",
  98. "gigapeta.com",
  99. "gigasize.com",
  100. "hellshare.com",
  101. "hellspy.com",
  102. "hitfile.net",
  103. "hostuje.net",
  104. "freefilehosting.net",
  105. "free.fr",
  106. "hulkshare.com",
  107. "hyperfileshare.com",
  108. "filecloud.io|ifile.it",
  109. "ifolder.ru",
  110. "jumbofiles.com",
  111. "uploadrocket.net",
  112. "lafiles.com",
  113. "leteckaposta.cz|sharegadget.com",
  114. "letitbit.net",
  115. "load.to",
  116. "mediafire.com",
  117. "megafileupload.com",
  118. "megashares.com",
  119. "movshare.net",
  120. "muchshare.net",
  121. "myupload.dk",
  122. "narod.ru|narod.yandex.ru",
  123. "netload.in",
  124. "fboom.me",
  125. "fileboom.me",
  126. "openfile.ru",
  127. "partage-facile.com",
  128. "plunder.com",
  129. // "putlocker.com",
  130. "sharerapid.cz",
  131. "exclusiveloader.com",
  132. "acefile.net",
  133. "queenshare.com",
  134. "quickshare.cz",
  135. "rapidgator.net",
  136. "keep2share.com",
  137. "oboom.com",
  138. "filepi.com",
  139. "neodrive.co",
  140. "rarefile.net",
  141. "rayfile.com",
  142. "rghost.net",
  143. "sendmyway.com",
  144. "clicknupload.com",
  145. "sharemods.com",
  146. "hostr.co",
  147. "sendspace.com",
  148. "sharecash.org",
  149. "share-links.biz",
  150. "share-online.biz|egoshare.com",
  151. "megarapid.cz",
  152. "shareflare.net",
  153. "solidfiles.com",
  154. "led.wf",
  155. "lan.wf",
  156. "adlink.wf",
  157. "click.tf",
  158. "kyc.pm",
  159. "ssh.tf",
  160. "ssh.yt",
  161. "yep.pm",
  162. "stahovanizasms.cz",
  163. "tufiles.ru",
  164. "turbobit.net",
  165. "filecloud.cc",
  166. "tikfile.com",
  167. "cloudsix.me",
  168. "turboupload.com",
  169. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  170. "ulozisko.sk",
  171. "uloziste.com",
  172. "unibytes.com",
  173. "upload-il.net|przeslij.net",
  174. "uploaded.to|ul.to",
  175. "uploading.com",
  176. "chayfile.com",
  177. "rockfile.eu",
  178. "24uploading.com",
  179. "uploadspace.pl",
  180. "upnito.sk",
  181. "uptobox.com",
  182. "usaupload.net",
  183. "veehd.com",
  184. "videobb.com",
  185. "vip-file.com",
  186. "webshare.cz",
  187. "xdisk.cz",
  188. "yunfile.com|filemarkets.com",
  189. "ziddu.com",
  190. "krotix.net",
  191. "zippyshare.com",
  192. "rodfile.com",
  193. "migahost.com",
  194. "wikiupload.com",
  195. "uploadstube.de",
  196. "faststore.org",
  197. "flyfiles.net",
  198. "nowdownload.eu",
  199. "prefiles.com",
  200. "axifile.com",
  201. "rapidsonic.com|fileparadox.com",
  202. "hackerbox.org",
  203. "amonshare.com",
  204. "data.hu",
  205. "brupload.net",
  206. "userscloud.com",
  207. "netkups.com",
  208. "edoc.com",
  209. "xfileload.com",
  210. "jumbofile.net",
  211. "kumpulbagi.com",
  212. "uppit.com|up.ht",
  213. "downloadani.me",
  214. "filesabc.com",
  215. "sharebeast.com",
  216. "180upload.com",
  217. "verzend.be",
  218. "movreel.com",
  219. "4up.me",
  220. "extmatrix.com",
  221. "sendfiles.nl",
  222. "yourfilestore.com",
  223. "filebig.net",
  224. "sockshare.com",
  225. "nekaka.com",
  226. "file4safe.com",
  227. "tusfiles.net",
  228. "filemac.com",
  229. "idup.in",
  230. "fileswap.com",
  231. "ozofiles.com",
  232. "loudupload.net",
  233. "nosupload.com",
  234. "gboxes.com",
  235. "myvdrive.com|fileserving.com",
  236. "filesin.com",
  237. "novafile.com",
  238. "longfiles.com",
  239. "uploadhero.com",
  240. "uploadbaz.com",
  241. "bitupload.com",
  242. "indowebster.com",
  243. "superload.cz",
  244. "mafiastorage.com",
  245. "4upfiles.com",
  246. "filesmelt.com",
  247. "hellupload.com",
  248. "uploadingit.com",
  249. "stiahni.si",
  250. "sendspace.pl",
  251. "fastshare.org",
  252. "filejoker.net",
  253. "filestore.com.ua",
  254. "secureupload.eu",
  255. "rapidfileshare.net",
  256. "stiahnito.sk",
  257. "rusfolder.com",
  258. "fileover.net",
  259. "catshare.net",
  260. "anonfiles.com",
  261. "mixturecloud.com",
  262. "fileparadox.in",
  263. "filedais.com",
  264. "imdb.com",
  265. "nitroflare.com",
  266. "akafile.com",
  267. "creafile.net",
  268. "hugefiles.net",
  269. "vidxden.com",
  270. "up.top4top.net",
  271. "upload.ee",
  272. "shareplace.org",
  273. "uploadc.com",
  274. "remixshare.com",
  275. "exoshare.com",
  276. "borncash.org",
  277. "junocloud.me",
  278. "keep2share.cc",
  279. "k2s.cc",
  280. "expressleech.com",
  281. "2downloadz.com",
  282. "mightyupload.com",
  283. "uncapped-downloads.com",
  284. "anysend.com",
  285. "datafile.com",
  286. "upstore.net",
  287. "upsto.re",
  288. "speedy.sh",
  289. "sanshare.com",
  290. "kingfiles.net",
  291. "uploadhero.co",
  292. "ge.tt",
  293. "filesflash.net",
  294. "salefiles.com",
  295. "keep2s.cc",
  296. "megairon.net",
  297. "datoid.cz",
  298. "cloudstor.es",
  299. "streamfile.com",
  300. "eyesfile.ca",
  301. "filemoney.com",
  302. "uploadboy.com",
  303. "speedshare.eu",
  304. "google.com",
  305. "unlimitzone.com",
  306. "rioupload.com",
  307. "rg.to",
  308. "jumbofiles.org",
  309. "fshare.vn",
  310. "spaceforfiles.com",
  311. "up.media1fire.com",
  312. "depfile.com",
  313. "go4up.com",
  314. "dropbox.com",
  315. "redbunker.net",
  316. "divxpress.com",
  317. "mega.nz|mega.co.nz",
  318. "anafile.com",
  319. "uploadable.ch",
  320. "arabloads.com",
  321. "sharerepo.com",
  322. "sfshare.se",
  323. "files.fm",
  324. "koofile.com",
  325. "vidplay.net",
  326. "storagon.com",
  327. "doraupload.com",
  328. "openload.io",
  329. "geupload.com|lenfile.com",
  330. "uploads.xxx",
  331. ];
  332.  
  333. try
  334. {
  335. //iframes excluded
  336. if (window.top != window.self)
  337. {
  338. return;
  339. }
  340. //allHostNames sites excluded
  341. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  342. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  343. ")"))
  344. {
  345. return;
  346. }
  347. }
  348. catch (e)
  349. {
  350. return;
  351. }
  352.  
  353. //separate alternative domains with "|" char (first name is considered being main)
  354. var allContainerNames = [
  355. "adf.ly",
  356. "linkcrypt.ws",
  357. "linksafe.me",
  358. "linksave.in",
  359. "linkto.net",
  360. "madlink.sk",
  361. "multiload.cz",
  362. "mirrorcreator.com",
  363. "ncrypt.in",
  364. "redi.re",
  365. "relink.us",
  366. "safelinking.net",
  367. "theloo.katt.it",
  368. "bit.ly",
  369.  
  370. ];
  371.  
  372. //separate alternative domains with "|" char (first name is considered being main)
  373. var allObsoleteNames = [
  374. "uloz.cz",
  375. "daj.to",
  376. "ddlstorage.com",
  377. "dataport.cz",
  378. "dizzcloud.com",
  379. "stahovadlo.cz",
  380. "shared.com",
  381. "storage.to",
  382. "putlocker.com",
  383. "lumfile.com",
  384. "lumfile.se",
  385. "lumfile.eu",
  386. "firedrive.com",
  387. "fileshare.in.ua",
  388. "filecore.co.nz",
  389. "iskladka.cz",
  390. "file-rack.com",
  391. "fast-load.net",
  392. "subory.sk",
  393. "bigandfree.com",
  394. "fileop.com",
  395. "mujsoubor.cz",
  396. "sendfile.to",
  397. "superfastfile.com",
  398. "quickyshare.com",
  399. "duckload.com",
  400. "uploadstore.net",
  401. "meinupload.com",
  402. "dualshare.com",
  403. "2xupload.to|2xupload.de",
  404. "oxedion.com",
  405. "uploadline.com",
  406. "dll.bz",
  407. "movieshare.in",
  408. "milledrive.com",
  409. "quickupload.net",
  410. "safelink.in",
  411. "metadivx.com",
  412. "divxlink.com",
  413. "uploadrack.com",
  414. "teradepot.com",
  415. "dataup.to",
  416. "upit.to",
  417. "driveway.com",
  418. "eatlime.com",
  419. "a2zuploads.com",
  420. "friendlyfiles.net",
  421. "flyfile.us",
  422. "speedyshare.com",
  423. "uploadspace.eu",
  424. "keepfile.com",
  425. "piggyshare.com",
  426. "uplly.com",
  427. "filecrown.com",
  428. "6giga.com",
  429. "uploadjockey.com",
  430. "bluehost.to",
  431. "filegu.ru",
  432. "filebase.to",
  433. "up-file.com",
  434. "xvideos.com",
  435. "ufox.com",
  436. "filebling.com",
  437. "loaded.it",
  438. "uploadcell.com",
  439. "uploadshare.cz",
  440. "mangoshare.com",
  441. "filestab.com",
  442. "crazyupload.com",
  443. "gaiafile.com",
  444. "sharejunky.com",
  445. "fileho.com",
  446. "bigandfree.com",
  447. "bigfile.in",
  448. "bigshare.eu",
  449. "dahosting.org",
  450. "digisofts.net",
  451. "file4save.com",
  452. "filechip.com",
  453. "filescloud.com",
  454. "saveqube.com",
  455. "turboshare.de",
  456. "z-upload.com",
  457. "youshare.com",
  458. "jiffyupload.com",
  459. "gigeshare.com",
  460. "datenklo.net",
  461. "upload.dj",
  462. "loadfiles.in",
  463. "upit.to",
  464. "dsfileshare.com",
  465. "sharesimple.net",
  466. "4files.net",
  467. "wooupload.com",
  468. "odsiebie.com",
  469. "filenavi.com",
  470. "3oof.com",
  471. "meshwaar.com",
  472. "maxupload.com",
  473. "share.cx",
  474. "atserver.eu",
  475. "hotfiles.ws",
  476. "esnips.com",
  477. "tuxfile.com",
  478. "file2upload.net",
  479. "filebling.com",
  480. "turboshare.com",
  481. "rarhost.com",
  482. "isharehd.com",
  483. "i741.com",
  484. "dataup.de",
  485. "fofly.com",
  486. "shareonall.com",
  487. "sexuploader.com",
  488. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  489. "uploadhyper.com",
  490. "filespawn.com",
  491. "caizzii.com",
  492. "volnyweb.cz",
  493. "usershare.net",
  494. "filescash.net",
  495. "metahyper.com",
  496. "combozip.com",
  497. "x7.to",
  498. "uploadbox.com",
  499. "enterupload.com|flyupload.com",
  500. "filepoint.de",
  501. "mystream.to",
  502. "x-fs.com",
  503. "shareator.com",
  504. "srapid.eu",
  505. "sosame.cz",
  506. "filesdump.com",
  507. "2-klicks.de",
  508. "uploking.com",
  509. "silofiles.com",
  510. "upfile.in",
  511. "filehook.com",
  512. "uploadking.com",
  513. "uploadhere.com",
  514. "kewlshare.com",
  515. "rapidable.com",
  516. "uploadwaste.com",
  517. "filemup.com",
  518. "filesonic.com|sharingmatrix.com",
  519. "fileserve.com",
  520. "wupload.com",
  521. "skipfile.com",
  522. "smartuploader.com",
  523. "dualshare.com",
  524. "storeandserve.com",
  525. "mountfile.com",
  526. "transitfiles.com",
  527. "uploadstation.com",
  528. "filejungle.com",
  529. "shareshared.com",
  530. "quickyshare.com",
  531. "save.am",
  532. "petandrive.com",
  533. "file2box.com",
  534. "flyshare.cz",
  535. "yabadaba.ru",
  536. "cloudcache.cc",
  537. "yourfilehost.com",
  538. "jakfile.com",
  539. "kickload.com",
  540. "pyramidfiles.com",
  541. "refile.net",
  542. "zshare.net",
  543. "ddlani.me|ddlanime.com",
  544. "ftp2share.com",
  545. "fooget.com",
  546. "rapidhide.com",
  547. "gotupload.com",
  548. "mooload.com",
  549. "zupload.com",
  550. "mytempdir.com",
  551. "onionshare.com",
  552. "stahnu.to",
  553. "oron.com",
  554. "badongo.com",
  555. "filereactor.com",
  556. "filegaze.com",
  557. "4bytez.com",
  558. "1hostclick.com",
  559. "anonstream.com",
  560. "batshare.com",
  561. "bitroad.net",
  562. "brontofile.com",
  563. "cloudnxt.net",
  564. "cloudnator.com|shragle.com",
  565. "filesfrog.net",
  566. "coolshare.cz",
  567. "dotavi.com",
  568. "ezyfile.net",
  569. "file-bit.net",
  570. "filecosy.com",
  571. "fileduct.com|fileduct.net",
  572. "filefat.com",
  573. "filelaser.com",
  574. "filemashine.com",
  575. "fileserver.cc",
  576. "filetechnology.com",
  577. "fireuploads.net",
  578. "gigfiles.net",
  579. "holderfile.com",
  580. "ihostia.com",
  581. "k2files.com",
  582. "mojofile.com",
  583. "ovfile.com",
  584. "qshare.com",
  585. "shafiles.me",
  586. "sharefilehost.com",
  587. "shareupload.com",
  588. "stahuj.to",
  589. "ugotfile.com",
  590. "uploadboost.com",
  591. "fileom.com",
  592. "vidhog.com",
  593. "xfileshare.eu",
  594. "bzlink.us",
  595. "bulletupload.com",
  596. // "wizzupload.com",
  597. "bloggerarticles.com",
  598. "mojedata.sk",
  599. "sharpfile.com",
  600. "upgrand.com",
  601. "nasdilej.cz",
  602. "mediatack.cz",
  603. "share-it.to",
  604. "primeupload.com",
  605. "filebeer.info",
  606. "baberepublic",
  607. "xtu.me",
  608. "sharebase.de",
  609. "luckyshare.net",
  610. "filerobo.com",
  611. "filevelocity.com",
  612. "filezpro.com",
  613. "file4sharing.com",
  614. "cing.be",
  615. "ufile.eu",
  616. "pigsonic.com",
  617. "fileupped.com",
  618. "sharerun.com",
  619. "filesaur.com",
  620. "rapidslnare.com",
  621. "bestsharing.com",
  622. "savefiles.net",
  623. "file2share.biz",
  624. "filecache.de",
  625. "monsteruploads.eu",
  626. "b9bb.com",
  627. "aiotool.net",
  628. "jamber.info",
  629. "megaftp.com",
  630. "desiupload.net",
  631. "file27.com",
  632. "yastorage.com",
  633. "filehost.ws",
  634. "copyload.com",
  635. "venusfile.com",
  636. "aieshare.com",
  637. "terafile.co",
  638. "terafile.com",
  639. "fileza.net",
  640. "filerose.com",
  641. "squillion.com",
  642. "fileprohost.com",
  643. "bitbonus.com",
  644. "warserver.cz",
  645. "uload.to",
  646. "sharedbit.net",
  647. "megaload.it",
  648. "filewinds.com",
  649. "uploadcore.com",
  650. "syfiles.com",
  651. "eyesfile.com",
  652. "hotfile.com",
  653. "superupl.com",
  654. "oteupload.com",
  655. "henchfile.com",
  656. "filegag.com",
  657. "HenchFile.com",
  658. "filedefend.com",
  659. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  660. "megabitshare.com",
  661. "cloudzer.com",
  662. "asfile.com",
  663. "cloudzer.net",
  664. "clz.to",
  665. "extabit.com",
  666. "247upload.com",
  667. "2download.de",
  668. "4fastfile.com",
  669. "asixfiles.com",
  670. "berofile.com",
  671. "bigupload.com",
  672. "cepzo.com",
  673. "clouds.to",
  674. "cobrashare.sk",
  675. "coraldrive.net",
  676. "cyberlocker.ch",
  677. "czshare.com",
  678. "darkport.org",
  679. "dark-uploads.com",
  680. "davvas.com",
  681. "enigmashare.com",
  682. "erofly.cz",
  683. "fastsonic.net",
  684. "filebox.com",
  685. "filecity.net",
  686. "filedap.com",
  687. "filedino.com",
  688. "filedownloads.org",
  689. "filefolks.com",
  690. "fileking.co",
  691. "filemates.com",
  692. "files.to",
  693. "files2k.eu",
  694. "filesector.cc",
  695. "bitshare.com",
  696. "filesega.com",
  697. "filesend.net",
  698. "filestay.com",
  699. "filestrum.com",
  700. "fileuplo.de",
  701. "fileupup.com",
  702. "forunesia.com",
  703. "freeuploads.fr",
  704. "uploa.dk",
  705. "getthebit.com",
  706. "getzilla.net",
  707. "goldfile.eu",
  708. "good.com",
  709. "grupload.com",
  710. "hellfile.com",
  711. "hipfile.com",
  712. "hitfile.com",
  713. "hulkfile.eu|duckfile.net",
  714. "i-filez.com",
  715. "ifile.ws",
  716. "kupload.org",
  717. "packupload.com",
  718. "lemuploads.com",
  719. "limelinx.com",
  720. "maxshare.pl",
  721. "megarelease.org",
  722. "megashare.com",
  723. "minus.com",
  724. "mlfat4arab.com",
  725. "multishare.cz",
  726. "nirafile.com",
  727. "ok2upload.com",
  728. "peejeshare.com",
  729. "premiuns.org",
  730. "przeklej.net",
  731. "qkup.net",
  732. "rapidupload.sk",
  733. "rockdizfile.com",
  734. "rocketfile.net",
  735. "share-now.net",
  736. "share76.com",
  737. "sharebees.com",
  738. "sharefiles.co",
  739. "slingfile.com",
  740. "sms4file.com",
  741. "space4file.com",
  742. "tigershare.net",
  743. "toucansharing.com",
  744. "ubuntuone.com",
  745. "unextfiles.com",
  746. "upaj.pl",
  747. "upfile.biz",
  748. "uploadbin.net",
  749. "uploadic.com",
  750. "uploadinc.com",
  751. "uploading4u.eu",
  752. "uploadjet.net",
  753. "uploadorb.com",
  754. "upthe.net",
  755. "uptorch.com",
  756. "vidbox.yt",
  757. "videozer.com",
  758. "vreer.com",
  759. "wallobit.com",
  760. "zooupload.com",
  761. "privatefiles.com",
  762. "xerver.co",
  763. "BillionUploads.com",
  764. "rapidshare.com",
  765. "rapidshare.ru",
  766. "4savefile.com",
  767. "bayfiles.com",
  768. "bayfiles.net",
  769. "dodane.pl",
  770. "dotsemper.com",
  771. "egofiles.com",
  772. "epicshare.net",
  773. "fiberupload.net",
  774. "filemonkey.in",
  775. "filemonster.net",
  776. "filepom.com",
  777. "filesbb.com",
  778. "fileshareup.com",
  779. "filevice.com",
  780. "gigaup.fr",
  781. "inafile.com",
  782. "isavelink.com",
  783. "loombo.com",
  784. "megafiles.se",
  785. "migupload.com",
  786. "mydisc.net",
  787. "nitrobits.com",
  788. "potload.com",
  789. "redload.net",
  790. "shareprofi.com",
  791. "sharesuper.info",
  792. "sinhro.net",
  793. "speedfile.cz",
  794. "speedshare.org",
  795. "storage.novoro.net",
  796. "swankshare.com",
  797. "swatupload.com",
  798. "upafile.com",
  799. "uploadmachine.com",
  800. "uploadsat.com",
  801. "upshared.com",
  802. "usefile.com",
  803. "yourfiles.to",
  804. "zomgupload.com",
  805. "ultramegabit.com",
  806. "uploadto.us",
  807.  
  808. ];
  809. ///////////////////////////////////////////////////////////////////////////////////////
  810. var firstRun = GM_getValue("First_run", true);
  811.  
  812. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  813. //////////////////////////////////////////////////////////////////////////////////////
  814. try
  815. {
  816. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  817. var last_known_version = GM_getValue("last_known_version", "");
  818. if (!last_known_version)
  819. {
  820. last_known_version = thisVersion;
  821. GM_setValue("last_known_version", last_known_version);
  822. }
  823. //var newVersion = !(thisVersion == last_known_version);
  824. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  825. GM_setValue("last_known_version", thisVersion);
  826. }
  827. catch (err)
  828. {
  829. var newVersion = false;
  830. }
  831.  
  832. var now = (new Date()).getTime();
  833. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  834. if (!last_custom_rules_nag)
  835. {
  836. last_custom_rules_nag = now;
  837. GM_setValue('last_custom_rules_nag', ''+now);
  838. }
  839.  
  840.  
  841. allHostNames.sort();
  842. allContainerNames.sort();
  843. allObsoleteNames.sort();
  844.  
  845. var RAND_STRING = "8QyvpOSsRG3QWq";
  846. var DEBUG_MODE = false;
  847.  
  848. var TOOLTIP_MAXWIDTH = 600; //in pixels
  849. var TOOLTIP_THUMBWIDTH = 200;
  850. var containers_processed = false;
  851.  
  852. //settings for keyboard functions start
  853. var CHECK_ALL_LINKS_KEY = "A";
  854. var CONFIGURATION_KEY = "C";
  855. var copy_to_dead_key = "D";
  856. var toggle_autocheck_key = "W";
  857. var toggle_Enable_Anonymizer_key = "Z";
  858. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  859. var first_key_keycodename = 'CTRL';
  860. var second_key_keycode = '18';
  861. var second_key_keycodename = 'ALT';
  862. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  863. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  864. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  865. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  866. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  867. //settings for keyboard functions end
  868.  
  869. //global settings start
  870. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  871. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  872. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  873. var Show_progress_stats, Display_tooltip_info, Icon_set;
  874. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  875. var Progress_box_refresh_rate;
  876. var Obsolete_file_hosts;
  877. var Custom_rules, Custom_rules_text;
  878.  
  879. var messageBox = document.createElement('b'); // top-left message box
  880.  
  881. var cLinksTotal = 0;
  882. var cLinksDead = 0;
  883. var cLinksAlive = 0;
  884. var cLinksUnava = 0;
  885. var cLinksprem = 0;
  886. var cLinksProcessed = 0;
  887.  
  888. var intervalId; //for updateProgress()
  889.  
  890. //icon resources
  891. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgS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I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  898. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  899. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDw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0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  902. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  903. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkS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_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  905.  
  906. //global settings end
  907. if (window.opera && !window.console)
  908. {
  909. window.console = {};
  910.  
  911. function fn()
  912. {
  913. opera.postError(arguments);
  914. };
  915. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  916. {
  917. window.console[name] = fn;
  918. });
  919. }
  920.  
  921. //displays colored text in message box
  922. function sendMessage(text, color)
  923. {
  924. var msgDiv = document.createElement('div');
  925. msgDiv.style.color = color;
  926. msgDiv.innerHTML = text;
  927. messageBox.appendChild(msgDiv);
  928. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  929. }
  930.  
  931. function linkify(totalourls)
  932. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  933. var ikkeTilladteTags;
  934. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  935. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  936. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  937. allLinksRegex = new RegExp(allLinksRegex, "g");
  938. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  939.  
  940. if (Do_not_linkify_DL_links)
  941. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  942. else
  943. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  944.  
  945. var regex = new RegExp(regexy);
  946. var textNode, muligtLink;
  947.  
  948. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  949. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  950.  
  951. var i = textNodes.snapshotLength;
  952. while (i--)
  953. {
  954. textNode = textNodes.snapshotItem(i);
  955.  
  956. muligtLink = textNode.nodeValue; //all links on page
  957.  
  958. var myArray = null;
  959. var span = null;
  960. var lastLastIndex = 0;
  961. allLinksRegex.lastIndex = 0;
  962. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  963. {
  964. if (textNode.parentNode.className == "adead_link") continue;
  965. var censoredLink = muligtLink;
  966. var span = document.createElement('span');
  967. span.className = "adead_link";
  968. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  969. $(span).html(censoredLink);
  970. span.addEventListener("mouseover", displayTooltipError, false);
  971. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  972. textNode.parentNode.replaceChild(span, textNode);
  973. continue;
  974. alert(censoredLink);
  975. }
  976. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  977. {
  978. if (!regex.test(myArray[0])) //this link is not recognized
  979. {
  980.  
  981. continue;
  982. }
  983. if (!span)
  984. span = document.createElement('span');
  985.  
  986. var link = myArray[0];
  987. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  988.  
  989. var $a = $("<a>" + link + "</a>")
  990. if (!link.match(/https?:\/\//))
  991. {
  992. link = 'http://' + link;
  993. }
  994.  
  995. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  996. .addClass("processing_link")
  997. .appendTo(span);
  998. lastLastIndex = allLinksRegex.lastIndex;
  999. }
  1000. if (span)
  1001. {
  1002. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1003. textNode.parentNode.replaceChild(span, textNode);
  1004. }
  1005. }
  1006. }
  1007.  
  1008. function add_WARLC_style()
  1009. {
  1010. if (!(document.getElementsByTagName('WARLC')[0]))
  1011. {
  1012. var meta_not_to_add_more_style = document.createElement("WARLC");
  1013. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1014. meta_not_to_add_more_style.setAttribute('name', 'description');
  1015. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1016. alive_link_png = "";
  1017. adead_link_png = "";
  1018. unava_link_png = "";
  1019. prem_link_png = "";
  1020. switch(Icon_set)
  1021. {
  1022. //no icons
  1023. case 0: break;
  1024. // cat paws
  1025. case 1: alive_link_png = PAW_ICON_GREEN;
  1026. adead_link_png = PAW_ICON_RED;
  1027. unava_link_png = PAW_ICON_YELLOW;
  1028. prem_link_png = PAW_ICON_PINK;
  1029. break;
  1030. // classic RSLC look
  1031. case 2: alive_link_png = RSLC_ICON_GREEN;
  1032. adead_link_png = RSLC_ICON_RED;
  1033. unava_link_png = RSLC_ICON_YELLOW;
  1034. prem_link_png = RSLC_ICON_PINK;
  1035. break;
  1036. // New Icons
  1037. case 3: alive_link_png = NEW_ICON_GREEN;
  1038. adead_link_png = NEW_ICON_RED;
  1039. unava_link_png = NEW_ICON_YELLOW;
  1040. prem_link_png = NEW_ICON_PINK;
  1041. break;
  1042. // cat paws
  1043. default:alive_link_png = PAW_ICON_GREEN;
  1044. adead_link_png = PAW_ICON_RED;
  1045. unava_link_png = PAW_ICON_YELLOW;
  1046. prem_link_png = PAW_ICON_PINK;
  1047. break;
  1048. }
  1049. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1050. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1051.  
  1052. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1053.  
  1054. if (Color_DL_links)
  1055. {
  1056. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1057. live_color_css = 'color:' + Live_links_color + ' !important;';
  1058. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1059. container_color_css = 'color:' + Container_links_color + ' !important;';
  1060. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1061. }
  1062. else
  1063. {
  1064. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1065. }
  1066.  
  1067. if (Show_black_background_in_DL_links)
  1068. {
  1069. black_background_css = 'background-color: black !important;';
  1070. }
  1071. else
  1072. {
  1073. black_background_css = '';
  1074. }
  1075.  
  1076. if (Show_line_through_in_dead_links)
  1077. {
  1078. line_through_css = 'text-decoration: line-through !important;';
  1079. }
  1080. else
  1081. {
  1082. line_through_css = '';
  1083. }
  1084.  
  1085. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1086. 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 + "}");
  1087. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1088. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1089. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1090. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1091. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1092. }
  1093. }
  1094.  
  1095. var warlcTooltip = null;
  1096. var mouseoverLink = null; //link href with mouse cursor over it
  1097.  
  1098. var lastX = 0;
  1099. var lastY = 0;
  1100.  
  1101. $(document).ready(initTooltip);
  1102. //inits tooltip
  1103. function initTooltip()
  1104. { warlcTooltip = document.createElement("div");
  1105. 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;");
  1106. warlcTooltip.style.visibility = "hidden";
  1107. document.body.appendChild(warlcTooltip);
  1108. }
  1109.  
  1110. //"mousemove" event handler for all links
  1111. function moveTooltip(event)
  1112. {
  1113. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1114. { //no need to reflow if the cursor moved just a little
  1115. return;
  1116. }
  1117. else
  1118. {
  1119. lastX = event.clientX;
  1120. lastY = event.clientY;
  1121. }
  1122.  
  1123. posX = event.clientX + window.pageXOffset + 10;
  1124. posY = event.clientY + window.pageYOffset;
  1125. var ttHeight = warlcTooltip.offsetHeight;
  1126. var ttFreeSpace = window.innerHeight - event.clientY;
  1127. if (ttHeight > ttFreeSpace)
  1128. { //prevents tooltip from getting out of the window
  1129. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1130. }
  1131. else
  1132. {
  1133. posY += 7;
  1134. }
  1135. warlcTooltip.style.top = posY + "px";
  1136. warlcTooltip.style.left = posX + "px";
  1137. }
  1138.  
  1139. //"mouseout" event handler for all links
  1140. function hideTooltip(){
  1141. warlcTooltip.style.visibility = "hidden";
  1142. mouseoverLink = null;
  1143. }
  1144.  
  1145.  
  1146. //"mouseover" event handler for dead links
  1147. //displays tooltip error message on dead links
  1148. function displayTooltipError()
  1149. {
  1150. mouseoverLink = this.href;
  1151. this.addEventListener("mouseout", hideTooltip);
  1152. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1153. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1154. warlcTooltip.style.minWidth = 0;
  1155. warlcTooltip.style.visibility = "visible";
  1156. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1157. {
  1158. warlcTooltip.innerHTML = this.warlc_error;
  1159. }
  1160. else
  1161. {
  1162. loadErrorInfo(this);
  1163. }
  1164. function loadErrorInfo(link)
  1165. {
  1166. var href = link.href;
  1167. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1168. GM_xmlhttpRequest({
  1169. method: 'GET',
  1170. url: href.replace(Ref_anonymize_service, ""),
  1171. headers: {
  1172. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1173. 'Accept': 'text/xml',
  1174. 'Referer': ""
  1175. },
  1176. onload: function(result) {
  1177. var res = result.responseText;
  1178. //TODO: errorRegexs -
  1179. var errorRegexs = [ //generic error messages follow
  1180. /(empty directory)/i,
  1181. /(soubor nebyl nalezen)/i,
  1182. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1183. //server specific error messages follow
  1184. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1185. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1186. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1187. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1188. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1189. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1190. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1191. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1192. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1193. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1194. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1195. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1196. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1197. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1198. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1199. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1200. /(File has been removed due to Copyright Claim)/, //filerio
  1201. ];
  1202. var errorIdx = errorRegexs.length;
  1203. var error = "Cause of error: <b>unknown</b>";
  1204. var errorCandidate = "";
  1205. while(errorIdx--)
  1206. {
  1207. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1208. if (errorCandidate != null)
  1209. {
  1210. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1211. break;
  1212. }
  1213. }
  1214. //link attributes
  1215. link.warlc_error = error;
  1216. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1217. {
  1218. warlcTooltip.innerHTML = error;
  1219. }
  1220. }
  1221. });
  1222. }
  1223. }
  1224.  
  1225. //"mouseover" event handler for alive links
  1226. //displays tooltip info (file size, file name,...) on alive links
  1227. function displayTooltipInfo()
  1228. {
  1229. mouseoverLink = this.href;
  1230. //exclude direct download filehostings
  1231. 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)/))
  1232. {
  1233. return;
  1234. }
  1235. this.addEventListener("mouseout", hideTooltip);
  1236. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1237. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1238. warlcTooltip.style.minWidth = 0;
  1239. warlcTooltip.style.visibility = "visible";
  1240. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1241. {
  1242. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1243. }
  1244. else
  1245. {
  1246. loadInfo(this);
  1247. }
  1248. function loadInfo(link)
  1249. {
  1250. var href = link.href;
  1251. GM_xmlhttpRequest({
  1252. method: 'GET',
  1253. url: href.replace(Ref_anonymize_service, ""),
  1254. headers: {
  1255. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1256. 'Accept': 'text/xml',
  1257. 'Referer': ""
  1258. },
  1259. onload: function(result) {
  1260. var res = result.responseText;
  1261. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1262. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1263. /fl" title="(.+?)">/, //edisk
  1264. /<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
  1265. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1266. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1267. /title="download (.+?)">/, //sendspace
  1268. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1269. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1270. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1271. /d0FileName = "(.+?)";/, //letitbit
  1272. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1273. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1274. /fname" value="(.+?)">/, //syfiles, grupload,
  1275. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1276. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1277. /Complete name : (.+?)<br \/>/, //bezvadata
  1278. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1279. ];
  1280. var nameIdx = nameRegexs.length;
  1281. // [sizeRegexs]
  1282. // / \ \?
  1283. // prefix (size) postfix
  1284. // / \
  1285. // val quant
  1286. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1287. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1288. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1289. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1290. var postSizeRegex = '(?:\\))?';
  1291. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1292. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1293. ];
  1294. var sizeIdx = sizeRegexs.length;
  1295. //
  1296. //
  1297. var tooltip = "File Name: <b>";
  1298. var fileName = "unknown";
  1299. var nameCandidate = "";
  1300. while(nameIdx--)
  1301. {
  1302. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1303. if (nameCandidate != null)
  1304. {
  1305. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1306. break;
  1307. }
  1308. }
  1309. tooltip += fileName + "</b><br>File Size: <b>";
  1310. var fileSize = "unknown";
  1311. var sizeCandidate = "";
  1312. while(sizeIdx--)
  1313. {
  1314. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1315. if (sizeCandidate != null)
  1316. {
  1317. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1318. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1319. {
  1320. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1321. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1322. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1323. }
  1324. break;
  1325. }
  1326. }
  1327. tooltip += fileSize + "</b>";
  1328. // PROTOTYPE
  1329. // video thumbnails
  1330. if (href.match('hellshare'))
  1331. {
  1332. var thumbs;
  1333. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1334. if (thumbs)
  1335. {
  1336. tooltip += '<br>';
  1337. var j = Math.min(thumbs.length, 9);
  1338. for (var i = 0; i < j; i++)
  1339. {
  1340. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1341. }
  1342. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1343. }
  1344. }
  1345. if (href.match('czshare'))
  1346. {
  1347. var thumbs;
  1348. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1349. if (thumbs)
  1350. {
  1351. var thumbsServer = thumbs[1];
  1352. var thumbsId = thumbs[2];
  1353. tooltip += '<br>';
  1354. for (var i = 1; i < 9; i++)
  1355. {
  1356. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1357. }
  1358. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1359. }
  1360. }
  1361. if (href.match('bezvadata'))
  1362. {
  1363. var thumbs;
  1364. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1365. if (thumbs)
  1366. {
  1367. tooltip += '<br>';
  1368. var j = Math.min(thumbs.length, 9);
  1369. for (var i = 0; i < j; i++)
  1370. {
  1371. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1372. }
  1373. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1374. }
  1375. }
  1376. link.warlc_tooltipcache = tooltip;
  1377. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1378. {
  1379. warlcTooltip.innerHTML = tooltip;
  1380. }
  1381. }
  1382. });
  1383. }
  1384. }
  1385.  
  1386. function setVariables()
  1387. {
  1388. if (firstRun)
  1389. {
  1390. GM_log('First run, applying default settings...');
  1391. GM_setValue("Icon_set",1);
  1392. GM_setValue("Display_tooltip_info",true);
  1393. GM_setValue("Show_black_background_in_DL_links",false);
  1394. GM_setValue("Show_line_through_in_dead_links",false);
  1395. GM_setValue("Display_full_links_in_link_containers",false);
  1396. GM_setValue("Allow_spaces_in_DL_links",false);
  1397. GM_setValue("Autocheck",true);
  1398. GM_setValue("Enable_Anonymizer",false);
  1399. GM_setValue("Do_not_linkify_DL_links",false);
  1400. GM_setValue("Show_progress_stats",true);
  1401. GM_setValue("Keyboard_functions",true);
  1402. GM_setValue("Obsolete_file_hosts",false);
  1403. GM_setValue("Color_DL_links",true);
  1404. GM_setValue("Live_links_color","Green");
  1405. GM_setValue("Dead_links_color","#FF3300");
  1406. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1407. GM_setValue("Container_links_color","DarkKhaki");
  1408. GM_setValue("Premium_links_color","DeepPink");
  1409. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1410. GM_setValue("Custom_rules",false);
  1411. GM_setValue("Custom_rules_text","");
  1412. GM_setValue("First_run", false);
  1413. }
  1414. //hidden settings
  1415. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1416. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1417. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1418. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1419. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1420. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1421. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1422. //hidden settings end
  1423.  
  1424. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1425. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1426. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1427. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1428. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1429. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1430. Autocheck = GM_getValue("Autocheck", true);
  1431. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1432. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1433. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1434. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1435. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1436. Color_DL_links = GM_getValue("Color_DL_links", true);
  1437. Live_links_color = GM_getValue("Live_links_color", "Green");
  1438. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1439. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1440. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1441. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1442. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1443. Custom_rules = GM_getValue("Custom_rules", false);
  1444. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1445. }
  1446.  
  1447.  
  1448. // Delinkifies the links
  1449. // params:
  1450. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1451. // e.g. 'uloz.to/xs68skxl8')
  1452. function delinkifySnapshot(snapshot)
  1453. {
  1454. var n = snapshot.snapshotLength;
  1455.  
  1456. while (n--)
  1457. {
  1458. thisLink = snapshot.snapshotItem(n);
  1459.  
  1460. var spanElm = document.createElement("span");
  1461. spanElm.className = thisLink.className;
  1462. spanElm.innerHTML = thisLink.innerHTML;
  1463.  
  1464. if (Display_tooltip_info)
  1465. {
  1466. spanElm.href = thisLink.href;
  1467. switch (thisLink.className){
  1468. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1469. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1470. case "unava_link": //reserved
  1471. default:
  1472. }
  1473. }
  1474. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1475. }
  1476. }
  1477.  
  1478. function processContainers()
  1479. {
  1480. var redirectorTypes = { "HTTP_302": 0,
  1481. "INNER_LINK": 1,
  1482. "THELOO_KATT_IT": 2,
  1483. "CING_BE": 3,
  1484. "ADF_LY": 4};
  1485. var cMultiloadTotal = 0;
  1486. var cMultiloadProcessed = 0;
  1487.  
  1488. var cMirrorcreatorComTotal = 0;
  1489. var cMirrorcreatorComProcessed = 0;
  1490.  
  1491. var hostRestrictionRegex = "";
  1492. var multiloadComRestriction = "";
  1493. var multiloadComRestrictionRegex;
  1494.  
  1495. //
  1496. //HANDLING REDIRECTORS START
  1497. //
  1498.  
  1499. var redirectors = new Array();
  1500. initRedirectors();
  1501.  
  1502. var redirectorsCount = redirectors.length;
  1503.  
  1504. if (redirectorsCount > 0)
  1505. {
  1506. var allRedirectorsRegex = "";
  1507.  
  1508. //linkify redirector links
  1509. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1510. {
  1511. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1512. }
  1513. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1514. linkify(allRedirectorsRegex);
  1515. //
  1516. //process redirector links
  1517. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1518. {
  1519. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1520. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1521.  
  1522. cLinksTotal += redirectors[redirIdx].cTotal;
  1523. var linkIdx = redirectors[redirIdx].cTotal;
  1524.  
  1525. while(linkIdx--)
  1526. {
  1527. switch(redirectors[redirIdx].type)
  1528. {
  1529. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1530. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1531. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1532. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1533. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1534. default:
  1535. }
  1536. }
  1537. }
  1538. //
  1539. }
  1540.  
  1541. //HTTP_302
  1542. function processRedirectorLink(link, redirectorId)
  1543. {
  1544. link.className = 'container_link';
  1545.  
  1546. GM_xmlhttpRequest({
  1547. method: 'HEAD',
  1548. url: link.href,
  1549. headers: {
  1550. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1551. 'Accept': 'text/xml',
  1552. 'Referer': ""
  1553. },
  1554. onload: function(result) {
  1555. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1556. {
  1557. processRedirectorLink(link, redirectorId);
  1558. }
  1559. else
  1560. {
  1561. redirectors[redirectorId].cProcessed++;
  1562. link.href = result.finalUrl;
  1563. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1564. checkLinks('container_link');
  1565. }
  1566. },
  1567. onerror: function(result) { //probably caused by unresponsive filehosting
  1568. redirectors[redirectorId].cProcessed++;
  1569. link.className = 'unava_link';
  1570. cLinksProcessed++;
  1571. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1572. checkLinks('container_link');
  1573. }
  1574. });
  1575. }
  1576. //INNER_LINK
  1577. function processRedirectorLinkEx(link, redirectorId)
  1578. {
  1579. link.className = 'container_link';
  1580. GM_xmlhttpRequest({
  1581. method: 'GET',
  1582. url: link.href,
  1583. headers: {
  1584. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1585. 'Accept': 'text/xml',
  1586. 'Referer': ""
  1587. },
  1588. onload: function(result) {
  1589. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1590. redirectors[redirectorId].cProcessed++;
  1591. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1592. checkLinks('container_link');
  1593. }
  1594. });
  1595. }
  1596. //theloo.katt.it (wrapped safelinking.net)
  1597. function processThelooKattItLink(link, redirectorId)
  1598. {
  1599. link.className = 'container_link';
  1600. GM_xmlhttpRequest({
  1601. method: 'GET',
  1602. url: link.href,
  1603. headers: {
  1604. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1605. 'Accept': 'text/xml',
  1606. 'Referer': ""
  1607. },
  1608. onload: function(result) {
  1609. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1610. redirectors[redirectorId].cProcessed++;
  1611. //the inner links are safelinking.net links, so lets proceed with it
  1612. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1613. {
  1614. processRedirectorLink(link, 0);
  1615. }
  1616. }
  1617. });
  1618. }
  1619. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1620. function processAdfLyLink(link, redirectorId)
  1621. {
  1622. link.className = 'container_link';
  1623. GM_xmlhttpRequest({
  1624. method: 'GET',
  1625. url: link.href,
  1626. headers: {
  1627. 'User-agent': 'Mozilla/4.0',
  1628. 'Accept': 'text/xml',
  1629. 'Referer': ""
  1630. },
  1631. onload: function(result) {
  1632. if (result.finalUrl.match('/locked/'))
  1633. {
  1634. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1635. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1636. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1637. }
  1638. else
  1639. {
  1640. // GM_log('Processing... ' + link.href);
  1641. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1642. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1643. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1644. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1645. //confirm advert
  1646. GM_xmlhttpRequest(
  1647. {
  1648. method: 'POST',
  1649. url: 'http://adf.ly/l.php',
  1650. headers: {
  1651. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1652. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1653. 'Referer': link.href
  1654. },
  1655. data: users + '&lt=' + logToken,
  1656. onload: function(result) {
  1657. //retrieve final url from .../go/... link
  1658. GM_xmlhttpRequest({
  1659. method: 'GET',
  1660. url: directLink,
  1661. headers: {
  1662. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1663. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1664. 'Referer': link.href
  1665. },
  1666. onload: function(result) {
  1667. link.href = result.finalUrl;
  1668. redirectors[redirectorId].cProcessed++;
  1669. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1670. checkLinks('container_link');
  1671. }
  1672. });
  1673. }
  1674. });
  1675. }
  1676. }
  1677. });
  1678. function proceedOK()
  1679. {
  1680. }
  1681. }
  1682. //MULTILOAD.CZ START
  1683. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1684. {
  1685. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1686. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1687.  
  1688. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1689.  
  1690. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1691. hostRestrictionRegex += 'hellshare|';
  1692. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1693. hostRestrictionRegex += 'share-rapid\\.com|';
  1694. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1695. hostRestrictionRegex += 'quickshare\\.cz|';
  1696. if (GM_getValue("Check_czshare_dot_com_links", false))
  1697. hostRestrictionRegex += 'czshare\\.com|';
  1698. if (GM_getValue("Check_uloz_dot_to_links", false))
  1699. hostRestrictionRegex += 'uloz\\.to|';
  1700. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1701. hostRestrictionRegex += 'hellspy|';
  1702. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1703. hostRestrictionRegex += 'multishare\\.cz|';
  1704.  
  1705. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1706.  
  1707. linkify(mlRegex);
  1708.  
  1709. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1710. var mlCount = mlSnapshot.snapshotLength;
  1711.  
  1712. if (mlCount > 0)
  1713. {
  1714. cMultiloadTotal += mlCount;
  1715.  
  1716. mlIdx = mlCount - 1;
  1717. do
  1718. {
  1719. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1720. }
  1721. while(mlIdx--)
  1722. }
  1723. }
  1724. //MULTILOAD.CZ END
  1725.  
  1726.  
  1727.  
  1728. function processMultiloadLink(mlLink)
  1729. {
  1730. GM_xmlhttpRequest({
  1731. method: 'GET',
  1732. url: mlLink.href,
  1733. headers: {
  1734. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1735. 'Accept': 'text/xml',
  1736. 'Referer': ""
  1737. },
  1738. onload: function(result) {
  1739. var res = result.responseText;
  1740.  
  1741. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1742. 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;
  1743. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1744. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1745.  
  1746. var blocks; // blocks of links
  1747. var blockIdx;
  1748.  
  1749. mlLink.className = '';
  1750.  
  1751. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1752. {
  1753. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1754. return;
  1755. }
  1756.  
  1757. blocks = res.match(innerBlockRegex);
  1758.  
  1759. if (blocks == null) //no links found, cancel further processing
  1760. {
  1761. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1762. cMultiloadProcessed++;
  1763. if (cMultiloadTotal <= cMultiloadProcessed)
  1764. {
  1765. startBulkCheck('container_link');
  1766. start('container_link');
  1767. }
  1768. return;
  1769. }
  1770.  
  1771. blockIdx = blocks.length;
  1772.  
  1773. if (Display_full_links_in_link_containers)
  1774. {
  1775. var ulElm = document.createElement('ul');
  1776. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1777.  
  1778. while(blockIdx--)
  1779. {
  1780. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1781. {
  1782. continue;
  1783. }
  1784.  
  1785. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1786.  
  1787. var linkIdx = innerLinks.length;
  1788. while (linkIdx--)
  1789. {
  1790. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1791.  
  1792. var liElm = document.createElement('li');
  1793.  
  1794. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1795. {
  1796. liElm.appendChild(document.createTextNode(innerLink));
  1797. }
  1798. else
  1799. {
  1800. var aElm = document.createElement('a');
  1801. aElm.innerHTML = innerLink;
  1802. aElm.href = innerLink;
  1803. aElm.className = 'container_link';
  1804.  
  1805. liElm.appendChild(aElm);
  1806. }
  1807.  
  1808. ulElm.appendChild(liElm);
  1809. cLinksTotal++;
  1810. }
  1811. }
  1812.  
  1813. mlLink.parentNode.appendChild(ulElm);
  1814. }
  1815. else //compact view
  1816. {
  1817. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1818.  
  1819. while(blockIdx--)
  1820. {
  1821. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1822. {
  1823. continue;
  1824. }
  1825.  
  1826. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1827.  
  1828. var linkIdx = innerLinks.length;
  1829. while (linkIdx--)
  1830. {
  1831. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1832.  
  1833. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1834. {
  1835. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1836. }
  1837. else
  1838. {
  1839. var aElm = document.createElement('a');
  1840.  
  1841. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1842.  
  1843. //abbreviate host name
  1844. switch(hostName + ""){
  1845.  
  1846. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1847. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1848. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1849. case 'multishare': aElm.innerHTML = 'MS'; break;
  1850. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1851. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1852. case 'czshare': aElm.innerHTML = 'CS'; break;
  1853. default: aElm.innerHTML = 'xx';
  1854.  
  1855. }
  1856.  
  1857. aElm.href = innerLink;
  1858. aElm.className = 'container_link';
  1859.  
  1860. mlLink.parentNode.appendChild(aElm);
  1861. cLinksTotal++;
  1862. }
  1863. }
  1864.  
  1865. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1866.  
  1867. }
  1868. }
  1869.  
  1870. cMultiloadProcessed++;
  1871. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1872. {
  1873. if (Do_not_linkify_DL_links)
  1874. {
  1875. delinkifySnapshot(mlSnapshot);
  1876. }
  1877. startBulkCheck('container_link');
  1878. start('container_link');
  1879. }
  1880. }
  1881. });
  1882. }
  1883.  
  1884.  
  1885. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1886. {
  1887. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1888. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1889. var mcShortHostNames =
  1890. '?? 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';
  1891. // 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
  1892. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1893. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1894. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1895. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1896.  
  1897. linkify(mcRegex);
  1898.  
  1899. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1900. var mcCount = mcSnapshot.snapshotLength;
  1901.  
  1902. cMirrorcreatorComTotal = mcCount;
  1903.  
  1904. if (mcCount > 0)
  1905. {
  1906. mcShortHostNames = mcShortHostNames.split(' ');
  1907. mcIdx = mcCount;
  1908. while(mcIdx--)
  1909. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1910. }
  1911.  
  1912. }
  1913. //MIRRORCREATOR.CZ END
  1914.  
  1915.  
  1916. //mirrorcreator.com checking works like this:
  1917. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1918. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1919. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1920. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1921. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1922. function processMirrorcreatorLink(mcLink)
  1923. {
  1924. var mcURL = mcLink.href.match(mcRegex);
  1925. if(!mcURL || !mcURL[1]) return;
  1926. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1927. GM_xmlhttpRequest({
  1928. method: 'GET',
  1929. url: mcURL,
  1930. headers: {
  1931. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1932. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1933. 'Referer': ""
  1934. },
  1935. onload: function(mcLinkResult) {
  1936. var mcLinkRes = mcLinkResult.responseText;
  1937.  
  1938. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1939. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1940.  
  1941. var mcRedirectors;
  1942. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1943. var m = mcLinkRes.match(mcLinkBlockRegex);
  1944. if (m)
  1945. mcHostsFound = m.length;
  1946. else
  1947. { //no files inside container
  1948. processMirrorcreatorFoundHosts(mcLink, []);
  1949. return;
  1950. }
  1951.  
  1952. var mcRedirectorURL, idx, timedOut = false;
  1953.  
  1954. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1955. GM_xmlhttpRequest({
  1956. method: 'GET',
  1957. url: mcRedirectorURL,
  1958. headers: {
  1959. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1960. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1961. 'Referer': ""
  1962. },
  1963. onload: function(mcHostResult) {
  1964. if (timedOut) return; //too late, the list is already displayed
  1965. var mcHostRes = mcHostResult.responseText;
  1966. var mcHost = mcHostRes.match(mcHostRegex);
  1967. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1968. if (mcHost && idx!=-1)
  1969. {
  1970. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1971. mcHostsRetrieved++;
  1972. mcHostsToProcess++;
  1973. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1974. {
  1975. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1976. mcHostsToProcess = 0;
  1977. }
  1978. }
  1979. } //end of onload: function
  1980. }); //end of GM_xmlhttpRequest call
  1981. };//end of var gmxhrFunc
  1982.  
  1983. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1984. { //load individual redirector pages
  1985. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1986. mcHostURLs.push(mcRedirectorURL);
  1987. mcRedirectorIDs.push(mcRedirectors[2]);
  1988. gmxhrFunc(mcRedirectorURL);
  1989. } //end of while block
  1990.  
  1991. setTimeout(function(){ //in case the last page fails to load and call the function
  1992. timedOut = true;
  1993. if (mcHostsToProcess)
  1994. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1995. }, 60000);
  1996.  
  1997. } //end of onload function
  1998. }); //end of GM_xmlhttpRequest call
  1999. } //end of function processMirrorcreatorLink
  2000.  
  2001.  
  2002. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2003. {
  2004. var aEl, liEl, docFrag;
  2005. var hostName, mcRedirectorID, trimFilename = false;
  2006. var i = mcHostURLs.length;
  2007. if (i == 0)
  2008. {
  2009. trimFilename = true;
  2010. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2011. }
  2012. else
  2013. {
  2014. if (Display_full_links_in_link_containers)
  2015. { //full view
  2016. var wrapperEl = document.createElement('span');
  2017. wrapperEl.style.display = 'block';
  2018. var ulistEl = document.createElement('ul');
  2019. ulistEl.className = 'container_list';
  2020. while (i--)
  2021. {
  2022. liEl = document.createElement('li');
  2023. aEl = document.createElement('a');
  2024. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2025. aEl.href = mcHostURLs[i];
  2026. aEl.className = 'container_link';
  2027. liEl.appendChild(aEl);
  2028. ulistEl.appendChild(liEl);
  2029. }
  2030. wrapperEl.appendChild(ulistEl);
  2031. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2032. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2033. }
  2034. else
  2035. { //compact view
  2036. trimFilename = true;
  2037. docFrag = document.createDocumentFragment();
  2038. docFrag.appendChild(document.createTextNode(' |'));
  2039. while (i--)
  2040. {
  2041. mcRedirectorID = mcRedirectorIDs[i];
  2042. hostName = mcHostURLs[i];
  2043. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2044. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2045. else
  2046. hostName = mcShortHostNames[mcRedirectorID];
  2047. aEl = document.createElement('a');
  2048. aEl.href = mcHostURLs[i];
  2049. aEl.className = 'container_link';
  2050. aEl.appendChild(document.createTextNode(hostName));
  2051. docFrag.appendChild(aEl);
  2052. docFrag.appendChild(document.createTextNode('|'));
  2053. }
  2054. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2055. } //end of else block
  2056. } //end of else block
  2057. mcLink.className = '';
  2058. if (trimFilename)
  2059. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2060. cMirrorcreatorComProcessed++;
  2061. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2062. {
  2063. if (Do_not_linkify_DL_links)
  2064. delinkifySnapshot(mcSnapshot);
  2065. startBulkCheck('container_link');
  2066. start('container_link');
  2067. }
  2068. } //end of function processMirrorcreatorFoundHosts
  2069.  
  2070. containers_processed = true;
  2071.  
  2072.  
  2073. function initRedirectors()
  2074. {
  2075. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2076. {
  2077. var redirector = new Object();
  2078. redirector.linkRegex = linkRegex;
  2079. redirector.xpath = xpathEx; //xpath expression
  2080. redirector.cProcessed = 0; //processed links count
  2081. redirector.cTotal = 0; //total links count
  2082. redirector.type = redirType; //redirectorTypes enum
  2083. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2084. redirectors.push(redirector);
  2085. }
  2086. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2087. {
  2088. addRedirector(
  2089. 'safelinking\\.net\/d\/\\w+',
  2090. "//a[contains(@href,'safelinking.net/d/')]",
  2091. redirectorTypes.HTTP_302,
  2092. null);
  2093. }
  2094. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2095. {
  2096. addRedirector(
  2097. 'linksafe\\.me\/d\/\\w+',
  2098. "//a[contains(@href,'linksafe.me/d/')]",
  2099. redirectorTypes.HTTP_302,
  2100. null);
  2101. }
  2102. if (GM_getValue("Check_linkto_dot_net_links", false))
  2103. {
  2104. addRedirector(
  2105. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2106. "//a[contains(@href,'linkto.net/?')]",
  2107. redirectorTypes.INNER_LINK,
  2108. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2109. }
  2110. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2111. {
  2112. addRedirector(
  2113. '(?:the)?loo\\.katt\\.it\/\\w+',
  2114. "//a[contains(@href,'loo.katt.it/')]",
  2115. redirectorTypes.THELOO_KATT_IT,
  2116. /Proceed to URL - <a href="(.+?)">/);
  2117. }
  2118. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2119. {
  2120. addRedirector(
  2121. 'madlink\\.sk\/\\w+',
  2122. "//a[contains(@href,'madlink.sk/')]",
  2123. redirectorTypes.INNER_LINK,
  2124. /name="url" value="(.+?)\s*"\/>/);
  2125. }
  2126. if (GM_getValue("Check_adf_dot_ly_links", false))
  2127. {
  2128. addRedirector(
  2129. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2130. "//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/')]",
  2131. redirectorTypes.ADF_LY,
  2132. null);
  2133. }
  2134. if (GM_getValue("Check_redi_dot_re_links", false))
  2135. {
  2136. addRedirector(
  2137. 'redi\\.re\/\\w+',
  2138. "//a[contains(@href,'redi.re/')]",
  2139. redirectorTypes.HTTP_302,
  2140. null);
  2141. }
  2142. if (GM_getValue("Check_bit_dot_ly_links", false))
  2143. {
  2144. addRedirector(
  2145. 'bit\\.ly\/\\w+',
  2146. "//a[contains(@href,'bit.ly/')]",
  2147. redirectorTypes.HTTP_302,
  2148. null);
  2149. }
  2150. }
  2151.  
  2152. }
  2153.  
  2154. var bulkHosts = new Array();
  2155. var bulkHostNames = new Array();
  2156. function initBulkCheck()
  2157. {
  2158. /////////////////////////////
  2159. // Inits filehost object
  2160. /////////////////////////////
  2161. // params :
  2162. // hostName -- [string] host name (multiple domains separated with coma)
  2163. // linkRegex -- [string] link regex
  2164. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2165. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2166. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2167. // corrReplWhat -- [regex] link correction regex (replace)
  2168. // corrReplWith -- [string]
  2169. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2170. //
  2171. // apiUrl -- [string] web linkchecker or API URL
  2172. // postData -- [string] POSTDATA of xmlhttprequest
  2173. // resLinkRegex -- [regex]
  2174. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2175. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2176. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2177. // func -- [function] bulkcheck handler, genBulkCheck if null
  2178. //
  2179. //////////////////////////////
  2180. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2181. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2182. {
  2183. var fileHost = new Object();
  2184.  
  2185. fileHost.linkRegex = linkRegex;
  2186. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2187. fileHost.xpath = xpath;
  2188. fileHost.cFound = 0; //found links counter
  2189. fileHost.links = new Array(); //found links
  2190. if (blockSize == null)
  2191. {
  2192. fileHost.blockSize = 50;
  2193. }
  2194. else
  2195. {
  2196. fileHost.blockSize = blockSize;
  2197. }
  2198. fileHost.corrMatch = corrMatch;
  2199. fileHost.corrReplWhat = corrReplWhat;
  2200. fileHost.corrReplWith = corrReplWith;
  2201. if (splitSeparator == null)
  2202. {
  2203. fileHost.splitSeparator = "\r\n";
  2204. }
  2205. else
  2206. {
  2207. fileHost.splitSeparator = splitSeparator;
  2208. }
  2209. fileHost.apiUrl = apiUrl;
  2210. fileHost.postData = postData;
  2211. fileHost.resLinkRegex = resLinkRegex;
  2212. fileHost.resLiveRegex = resLiveRegex;
  2213. fileHost.resDeadRegex = resDeadRegex;
  2214. fileHost.resUnavaRegex = resUnavaRegex;
  2215. if (func == null)
  2216. {
  2217. fileHost.func = genBulkCheck;
  2218. }
  2219. else
  2220. {
  2221. fileHost.func = func;
  2222. }
  2223. bulkHosts.push(fileHost);
  2224. var names = hostName.split(',');
  2225. var i = names.length;
  2226. while(i--)
  2227. {
  2228. bulkHostNames[names[i]] = fileHost;
  2229. }
  2230. }
  2231. var genType1 = [
  2232. "migahost.com", "rodfile.com", "downloadani.me",
  2233. "rarefile.net",
  2234. "filesabc.com", "sharebeast.com",
  2235. "180upload.com", "verzend.be",
  2236. "movreel.com",
  2237. "4up.me",
  2238. "file4safe.com", "filemac.com", "4upfiles.com",
  2239. "idup.in", "novafile.com", "longfiles.com",
  2240. "bitupload.com",
  2241. "uploadbaz.com"
  2242. ];
  2243. var genType2 = [ "queenshare.com",
  2244. "hulkload.com",
  2245. "amonshare.com", "edoc.com",
  2246. ];
  2247. //xfilesharing 1.0
  2248. function addGenericType1()
  2249. {
  2250. var i = genType1.length;
  2251. while(i--)
  2252. {
  2253. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2254. {
  2255. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2256. addHost(
  2257. genType1[i].match(/[\w-]+/)[0], //hostname
  2258. regexSafe + "\/\\w+", //linkregex
  2259. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2260. null, //blocksize
  2261. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2262. null, //corrreplwhat
  2263. null, //corrreplwith
  2264. null, //separator
  2265. "http://" + genType1[i] + "/checkfiles.html", //api url
  2266. "op=checkfiles&process=Check+URLs&list=", //postdata
  2267. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2268. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2269. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2270. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2271. null //function delegate
  2272. )
  2273. }
  2274. }
  2275. }
  2276. //xfilesharing 2.0
  2277. function addGenericType2()
  2278. {
  2279. var i = genType2.length;
  2280. while(i--)
  2281. {
  2282. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2283. {
  2284. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2285. addHost(
  2286. genType2[i].match(/[\w-]+/)[0], //hostname
  2287. regexSafe + "\/\\w+", //linkregex
  2288. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2289. null, //blocksize
  2290. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2291. null, //corrreplwhat
  2292. null, //corrreplwith
  2293. null, //separator
  2294. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2295. "op=checkfiles&process=Check+URLs&list=", //postdata
  2296. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2297. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2298. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2299. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2300. null //function delegate
  2301. )
  2302. }
  2303. }
  2304. }
  2305. // TEMPLATE
  2306. // if (GM_getValue("Check__dot_com_links", false))
  2307. // {
  2308. // addHost(
  2309. // "", //hostname
  2310. // "", //linkregex
  2311. // "//a[contains(@href,'.com/')]", //xpath
  2312. // null, //blocksize
  2313. // null, //corrmatch
  2314. // null, //corrreplwhat
  2315. // null, //corrreplwith
  2316. // null, //separator
  2317. // "", //api url
  2318. // "", //postdata
  2319. // /()/, //linkregex
  2320. // //liveregex
  2321. // //deadregex
  2322. // //unavaregex
  2323. // null //function delegate
  2324. // )
  2325. // }
  2326. addGenericType1();
  2327. addGenericType2();
  2328.  
  2329. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2330. {
  2331. addHost(
  2332. "myvdrive,fileserving", //hostname
  2333. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2334. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2335. null, //blocksize
  2336. null, //corrmatch
  2337. null, //corrreplwhat
  2338. null, //corrreplwith
  2339. null, //separator
  2340. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2341. "links=", //postdata
  2342. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2343. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2344. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2345. null, //unavaregex
  2346. null //function delegate
  2347. )
  2348. }
  2349. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2350. {
  2351. addHost(
  2352. "hackerbox", //hostname
  2353. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2354. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2355. null, //blocksize
  2356. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2357. null, //corrreplwhat
  2358. null, //corrreplwith
  2359. null, //separator
  2360. "http://host.hackerbox.org/checkfiles.html", //api url
  2361. "op=checkfiles&process=Check+URLs&list=", //postdata
  2362. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2363. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2364. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2365. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2366. null //function delegate
  2367. )
  2368. }
  2369. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2370. {
  2371. addHost(
  2372. "hellshare", //hostname
  2373. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2374. "//a[contains(@href,'hellshare.')]", //xpath
  2375. 48, //blocksize
  2376. null, //corrmatch
  2377. null, //corrreplwhat
  2378. null, //corrreplwith
  2379. null, //separator
  2380. null, //api url
  2381. null, //postdata
  2382. null, //linkregex
  2383. null, //liveregex
  2384. null, //deadregex
  2385. null, //unavaregex
  2386. hellshareBulkCheck //function delegate
  2387. )
  2388. }
  2389. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2390. {
  2391. addHost(
  2392. "ncrypt", //hostname
  2393. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2394. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2395. 100000, //blocksize
  2396. null, //corrmatch
  2397. null, //corrreplwhat
  2398. null, //corrreplwith
  2399. null, //separator
  2400. null,
  2401. null,
  2402. null,
  2403. null,
  2404. null,
  2405. null,
  2406. ncryptBulkCheck //function delegate
  2407. )
  2408. }
  2409. if (GM_getValue("Check_geupload_dot_com_links", false))
  2410. {
  2411. addHost(
  2412. "geupload,lenfile", //hostname
  2413. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2414. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2415. null, //blocksize
  2416. null, //corrmatch
  2417. null, //corrreplwhat
  2418. null, //corrreplwith
  2419. "\n", //separator
  2420. 'http://geupload.com/?op=checkfiles',
  2421. 'op=checkfiles&process=Check+URLs&list=',
  2422. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2423. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2424. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2425. null,
  2426. null
  2427. )
  2428. }
  2429. if (GM_getValue("Check_filepost_dot_com_links", false))
  2430. {
  2431. addHost(
  2432. "filepost,fp", //hostname
  2433. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2434. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2435. null, //blocksize
  2436. null, //corrmatch
  2437. null, //corrreplwhat
  2438. null, //corrreplwith
  2439. "\n", //separator
  2440. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2441. 'urls=',
  2442. /\\\/files\\\/(\w+)/,
  2443. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2444. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2445. null,
  2446. null //function delegate
  2447. )
  2448. }
  2449. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2450. {
  2451. addHost(
  2452. "filesflash", //hostname
  2453. "filesflash\\.com\/\\w+", //linkregex
  2454. "//a[contains(@href,'filesflash.com')]", //xpath
  2455. null, //blocksize
  2456. null, //corrmatch
  2457. /http:\/\//, //corrreplwhat
  2458. '', //corrreplwith
  2459. null, //separator
  2460. 'http://filesflash.com/checklinks.php',
  2461. 'submit=Go&links=',
  2462. /filesflash\.com\/(\w+)/,
  2463. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2464. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2465. null,
  2466. null //function delegate
  2467. )
  2468. }
  2469. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2470. {
  2471. addHost(
  2472. "jumbofiles", //hostname
  2473. "jumbofiles\\.com\/\\w+", //linkregex
  2474. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2475. null, //blocksize
  2476. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2477. null, //corrreplwhat
  2478. null, //corrreplwith
  2479. null, //separator
  2480. "http://jumbofiles.com/checkfiles.html", //api url
  2481. "op=checkfiles&process=Check+URLs&list=", //postdata
  2482. /(jumbofiles\.com\/\w+)/, //linkregex
  2483. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2484. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2485. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2486. null //function delegate
  2487. )
  2488. }
  2489. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2490. {
  2491. addHost(
  2492. "edisk", //hostname
  2493. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2494. "//a[contains(@href,'edisk.')]", //xpath
  2495. null, //blocksize
  2496. null, //corrmatch
  2497. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2498. 'edisk.cz/stahni', //corrreplwith
  2499. null, //separator
  2500. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2501. 'submitBtn=Zkontrolovat&checkFiles=',
  2502. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2503. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2504. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2505. null,
  2506. null //function delegate
  2507. )
  2508. }
  2509. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2510. {
  2511. GM_xmlhttpRequest( //age check skip
  2512. {
  2513. method: 'POST',
  2514. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2515. headers: {
  2516. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2517. 'Content-type': 'application/x-www-form-urlencoded',
  2518. 'Referer': ""
  2519. }
  2520. });
  2521. addHost(
  2522. "bezvadata", //hostname
  2523. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2524. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2525. null, //blocksize
  2526. null, //corrmatch
  2527. null, //corrreplwhat
  2528. null, //corrreplwith
  2529. null, //separator
  2530. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2531. 'zkontrolovat=Zkontrolovat&odkazy=',
  2532. /(bezvadata\.cz\/stahnout\/\d+)/,
  2533. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2534. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2535. null,
  2536. null //function delegate
  2537. )
  2538. }
  2539. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2540. {
  2541. addHost(
  2542. "linkcrypt", //hostname
  2543. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2544. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2545. 100000, //blocksize
  2546. null, //corrmatch
  2547. null, //corrreplwhat
  2548. null, //corrreplwith
  2549. null, //separator
  2550. null,
  2551. null,
  2552. null,
  2553. null,
  2554. null,
  2555. null,
  2556. linkcryptBulkCheck //function delegate
  2557. )
  2558. }
  2559. if (GM_getValue("Check_linksave_dot_in_links", false))
  2560. {
  2561. addHost(
  2562. "linksave", //hostname
  2563. "linksave\\.in\/\\w+", //linkregex
  2564. "//a[contains(@href,'linksave.in')]", //xpath
  2565. 100000, //blocksize
  2566. null, //corrmatch
  2567. null, //corrreplwhat
  2568. null, //corrreplwith
  2569. null, //separator
  2570. null,
  2571. null,
  2572. null,
  2573. null,
  2574. null,
  2575. null,
  2576. linksaveBulkCheck //function delegate
  2577. )
  2578. }
  2579. if (GM_getValue("Check_videobb_dot_com_links", false))
  2580. {
  2581. addHost(
  2582. "videobb", //hostname
  2583. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2584. "//a[contains(@href,'videobb.com')]", //xpath
  2585. null, //blocksize
  2586. null, //corrmatch
  2587. /watch_video\.php\?v=/, //corrreplwhat
  2588. 'video/', //corrreplwith
  2589. null, //separator
  2590. 'http://www.videobb.com/link_checker.php',
  2591. 'links=',
  2592. /videobb\.com\/video\/(\w+)/,
  2593. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2594. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2595. null,
  2596. null //function delegate
  2597. )
  2598. }
  2599. if (GM_getValue("Check_cramit_dot_in_links", false))
  2600. {
  2601. addHost(
  2602. "cramit,cramitin", //hostname
  2603. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2604. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2605. null, //blocksize
  2606. null, //corrmatch
  2607. null, //corrreplwhat
  2608. null, //corrreplwith
  2609. null, //separator
  2610. 'http://cramit.in/checkfiles.html',
  2611. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2612. /(cramit(?:\.in|in\.net)\/\w+)/,
  2613. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2614. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2615. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2616. null //function delegate
  2617. )
  2618. }
  2619. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2620. {
  2621. addHost(
  2622. "turbobit", //hostname
  2623. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2624. "//a[contains(@href,'turbobit.')]", //xpath
  2625. null, //blocksize
  2626. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2627. null, //corrreplwhat
  2628. null, //corrreplwith
  2629. "\n", //separator
  2630. 'http://turbobit.net/linkchecker/csv',
  2631. 'links_to_check=',
  2632. /(turbobit\.(?:net|pl)\/\w+)/,
  2633. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2634. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2635. null,
  2636. null //function delegate
  2637. )
  2638. }
  2639. if (GM_getValue("Check_filerio_dot_com_links", false))
  2640. {
  2641. addHost(
  2642. "filekeen,filerio", //hostname
  2643. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2644. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2645. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2646. null, //blocksize
  2647. null, //corrmatch
  2648. null, //corrreplwhat
  2649. null, //corrreplwith
  2650. null, //separator
  2651. 'http://filerio.in/checkfiles.html',
  2652. 'op=checkfiles&process=Check+URLs&list=',
  2653. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2654. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2655. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2656. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2657. null //function delegate
  2658. )
  2659. }
  2660. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2661. {
  2662. addHost(
  2663. "share-online,egoshare", //hostname
  2664. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2665. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2666. null, //blocksize
  2667. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2668. null, //corrreplwhat
  2669. null, //corrreplwith
  2670. "\n", //separator
  2671. 'http://api.share-online.biz/linkcheck.php',
  2672. 'links=',
  2673. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2674. /\w+;OK/g,
  2675. /\w+;(?:NOTFOUND|DELETED)/g,
  2676. null,
  2677. null //function delegate
  2678. )
  2679. }
  2680. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2681. {
  2682. addHost(
  2683. "quickshare", //hostname
  2684. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2685. "//a[contains(@href,'quickshare.cz')]", //xpath
  2686. null, //blocksize
  2687. null, //corrmatch
  2688. null, //corrreplwhat
  2689. null, //corrreplwith
  2690. null, //separator
  2691. 'http://www.quickshare.cz/nastroje/link-checker',
  2692. 'linky=',
  2693. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2694. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2695. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2696. null,
  2697. null //function delegate
  2698. )
  2699. }
  2700. if (GM_getValue("Check_netload_dot_in_links", false))
  2701. {
  2702. addHost(
  2703. "netload", //hostname
  2704. "netload\\.in\/datei\\w{10}", //linkregex
  2705. "//a[contains(@href,'netload.in')]", //xpath
  2706. null, //blocksize
  2707. null, //corrmatch
  2708. null, //corrreplwhat
  2709. null, //corrreplwith
  2710. "\n", //separator
  2711. "http://api.netload.in/index.php?id=2", //api url
  2712. "send=Absenden&links=", //postdata
  2713. /(\w+);/, //linkregex
  2714. /\w{10,};.+?;.+?;online/g, //liveregex
  2715. /\w{10,};.+?;.+?;offline/g, //deadregex
  2716. null, //unavaregex
  2717. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2718. null //function delegate
  2719. )
  2720. }
  2721. if (GM_getValue("Check_oboom_dot_com_links", false))
  2722. {
  2723. addHost(
  2724. "oboom", //hostname
  2725. "oboom\\.com\/#?\\w{8}", //linkregex
  2726. "//a[contains(@href,'oboom.com/')]", //xpath
  2727. null, //blocksize
  2728. /oboom\.com\/#?(\w{8})/, //corrmatch
  2729. null, //corrreplwhat
  2730. null, //corrreplwith
  2731. null, //separator
  2732. null,
  2733. null,
  2734. null,
  2735. null, //liveregex
  2736. null, //deadregex
  2737. null,
  2738. oboomBulk //function delegate
  2739. )
  2740. }
  2741. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2742. {
  2743. addHost(
  2744. "mega",
  2745. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2746. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2747. 100000, //blocksize
  2748. null, //corrmatch
  2749. null, //corrreplwhat
  2750. null, //corrreplwith
  2751. null, //separator
  2752. null,
  2753. null,
  2754. null,
  2755. null,
  2756. null,
  2757. null,
  2758. megaBulkCheck //function delegate
  2759. )
  2760. }
  2761.  
  2762. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2763.  
  2764. if (GM_getValue("Check_extabit_dot_com_links", false))
  2765. {
  2766. addHost(
  2767. "extabit", //hostname
  2768. "extabit\\.com\/file\/\\w+", //linkregex
  2769. "//a[contains(@href,'extabit.com')]", //xpath
  2770. null, //blocksize
  2771. null, //corrmatch
  2772. null, //corrreplwhat
  2773. null, //corrreplwith
  2774. "\n", //separator
  2775. "http://extabit.com/linkchecker.jsp", //api url
  2776. "url=", //postdata
  2777. /extabit\.com\/(file\/\w+)/, //linkregex
  2778. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2779. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2780. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2781. extabitBulkCheck //function delegate
  2782. )
  2783. }
  2784. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2785. {
  2786. addHost(
  2787. "junocloud", //hostname
  2788. "junocloud\\.me\/\\w+", //linkregex
  2789. "//a[contains(@href,'junocloud.me')]", //xpath
  2790. null, //blocksize
  2791. null, //corrmatch
  2792. null, //corrreplwhat
  2793. null, //corrreplwith
  2794. "\n", //separator
  2795. "http://junocloud.me/checkfiles.html", //api url
  2796. "op=checkfiles&process=Check+URLs&list=", //postdata
  2797. /(junocloud\.me\/\w+)/, //linkregex
  2798. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2799. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2800. null, //unavaregex
  2801. null //function delegate
  2802. )
  2803. }
  2804. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2805. {
  2806. addHost(
  2807. "webshare", //hostname
  2808. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2809. "//a[contains(@href,'webshare.cz')]", //xpath
  2810. 100000, //blocksize
  2811. null, //corrmatch
  2812. null, //corrreplwhat
  2813. null, //corrreplwith
  2814. null, //separator
  2815. null, //api url
  2816. null, //postdata
  2817. null, //linkregex
  2818. null, //liveregex
  2819. null, //deadregex
  2820. null, //unavaregex
  2821. webshareBulkCheck //function delegate
  2822. )
  2823. }
  2824. /////////////////////////////
  2825. // Common function delegate to send links to get checked by host linkchecker
  2826. /////////////////////////////
  2827. // If you define a new delegate, you may use following properties
  2828. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2829. // this.apiUrl [string] API or web linkchecker URL
  2830. // this.postData [string] POSTDATA for POST request
  2831. // this.resLiveRegex [regex] matches live substrings in the request response
  2832. // this.resDeadRegex [regex] matches dead substrings in the request response
  2833. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2834. //
  2835. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2836. //
  2837. // See the code below for standard bulkcheck handling reference.
  2838. //////////////////////////////
  2839. function genBulkCheck()
  2840. {
  2841. var blockIdx = this.links.length;
  2842. while (blockIdx--)
  2843. {
  2844. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2845. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2846. }
  2847. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2848. {
  2849. GM_xmlhttpRequest(
  2850. {
  2851. method: 'POST',
  2852. url: api,
  2853. headers: {
  2854. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2855. 'Content-type': 'application/x-www-form-urlencoded',
  2856. 'Referer': api,
  2857. 'X-Requested-With': 'XMLHttpRequest'
  2858. },
  2859. data: postData + encodeURIComponent(links),
  2860. onload: function (result)
  2861. {
  2862. var res = result.responseText;
  2863. // GM_log(res);
  2864. var i;
  2865.  
  2866. var livelinks = res.match(liveRegex);
  2867. var deadlinks = res.match(deadRegex);
  2868. // GM_log(livelinks);
  2869. // GM_log(deadlinks);
  2870. if (livelinks != null)
  2871. {
  2872. i = livelinks.length - 1;
  2873. do
  2874. {
  2875. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2876. }
  2877. while (i--);
  2878. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2879. }
  2880.  
  2881. if (deadlinks != null)
  2882. {
  2883. i = deadlinks.length - 1;
  2884. do
  2885. {
  2886. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2887. }
  2888. while (i--);
  2889. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2890. }
  2891.  
  2892. if (unavaRegex != null)
  2893. {
  2894. var unavalinks = res.match(unavaRegex);
  2895. if (unavalinks)
  2896. {
  2897. i = unavalinks.length - 1;
  2898. do
  2899. {
  2900. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2901. }
  2902. while (i--);
  2903. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2904. }
  2905. }
  2906. }
  2907. });
  2908. }
  2909. }
  2910. //specialized bulkchecking handlers follow
  2911. function webshareBulkCheck()
  2912. {
  2913. var arr = this.links[0].split("\r\n");
  2914. var i = arr.length;
  2915. while(i--)
  2916. {
  2917. postRequest(arr[i]);
  2918. }
  2919. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2920. function postRequest(wsLink)
  2921. {
  2922. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2923. GM_xmlhttpRequest(
  2924. {
  2925. method: 'POST',
  2926. url: "http://webshare.cz/api/file_info/",
  2927. headers: {
  2928. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2929. 'Content-type': 'application/x-www-form-urlencoded',
  2930. 'Referer': "",
  2931. },
  2932. data: "wst=&ident=" + id,
  2933. onload: function (result)
  2934. {
  2935. var res = result.responseText;
  2936. if (res.match(/<name>.+?<\/name>/))
  2937. {
  2938. DisplayTheCheckedLinks([id], 'alive_link');
  2939. }
  2940. else
  2941. {
  2942. DisplayTheCheckedLinks([id], 'adead_link');
  2943. }
  2944. }
  2945. });
  2946. }
  2947. }
  2948. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2949. //extabit also doesn't like requests in fast succession, so some delays are added.
  2950. function extabitBulkCheck()
  2951. {
  2952. var timeoutDelay = 0;
  2953. var blockIdx = this.links.length;
  2954. while (blockIdx--)
  2955. {
  2956. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2957. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2958. }
  2959. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2960. {
  2961. GM_xmlhttpRequest(
  2962. {
  2963. method: 'POST',
  2964. url: api,
  2965. headers: {
  2966. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2967. 'Content-type': 'application/x-www-form-urlencoded',
  2968. 'Referer': api,
  2969. 'X-Requested-With': 'XMLHttpRequest'
  2970. },
  2971. data: postData + encodeURIComponent(links),
  2972. onload: function (result)
  2973. {
  2974. var res = result.responseText;
  2975. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2976. {
  2977. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2978. {
  2979. //GM_log(tryID + ': ' + link);
  2980. GM_xmlhttpRequest(
  2981. {
  2982. method: 'GET',
  2983. url: link,
  2984. 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': ""},
  2985. onload: function(result2)
  2986. {
  2987. var res2 = result2.responseText;
  2988. var res2Status = result.status;
  2989. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2990. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2991. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2992. {
  2993. if (tryID < 7)
  2994. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2995. else
  2996. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2997. }
  2998. }
  2999. });
  3000. }
  3001. //split the hrefs and check them one by one
  3002. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3003. links = links.split('\n');
  3004. var i = links.length;
  3005. while (i--)
  3006. {
  3007. if (links[i])
  3008. {
  3009. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3010. timeoutDelay += 500;
  3011. }
  3012. }
  3013. return;
  3014. }
  3015. var i;
  3016.  
  3017. var livelinks = res.match(liveRegex);
  3018. var deadlinks = res.match(deadRegex);
  3019. if (livelinks != null)
  3020. {
  3021. i = livelinks.length - 1;
  3022. do
  3023. {
  3024. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3025. }
  3026. while (i--);
  3027. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3028. }
  3029.  
  3030. if (deadlinks != null)
  3031. {
  3032. i = deadlinks.length - 1;
  3033. do
  3034. {
  3035. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3036. }
  3037. while (i--);
  3038. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3039. }
  3040.  
  3041. if (unavaRegex != null)
  3042. {
  3043. var unavalinks = res.match(unavaRegex);
  3044. if (unavalinks)
  3045. {
  3046. i = unavalinks.length - 1;
  3047. do
  3048. {
  3049. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3050. }
  3051. while (i--);
  3052. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3053. }
  3054. }
  3055. }
  3056. });
  3057. }
  3058. }
  3059. function netloadBulkCheck()
  3060. {
  3061. var blockIdx = this.links.length;
  3062.  
  3063. while (blockIdx--)
  3064. {
  3065. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3066. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3067. }
  3068. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3069. {
  3070. GM_xmlhttpRequest(
  3071. {
  3072. method: 'POST',
  3073. url: api,
  3074. headers: {
  3075. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3076. 'Content-type': 'application/x-www-form-urlencoded',
  3077. 'Referer': ""
  3078. },
  3079. data: postData + encodeURIComponent(links),
  3080. onload: function (result)
  3081. {
  3082. var res = result.responseText;
  3083. var i;
  3084.  
  3085. var livelinks = res.match(liveRegex);
  3086. var deadlinks = res.match(deadRegex);
  3087. if (livelinks != null)
  3088. {
  3089. i = livelinks.length - 1;
  3090. do
  3091. {
  3092. recheckLink(livelinks[i].match(linkRegex)[1]);
  3093. }
  3094. while(i--);
  3095. }
  3096.  
  3097. if (deadlinks != null)
  3098. {
  3099. i = deadlinks.length - 1;
  3100. do
  3101. {
  3102. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3103. }
  3104. while (i--);
  3105. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3106. }
  3107. }
  3108. });
  3109. }
  3110. function recheckLink(link)
  3111. {
  3112. var link = link;
  3113. GM_xmlhttpRequest(
  3114. {
  3115. method: 'GET',
  3116. url: 'http://netload.in/datei' + link + '.htm',
  3117. headers: {
  3118. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3119. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3120. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3121. 'Referer': ""
  3122. },
  3123. onload: function (result)
  3124. {
  3125. var res = result.responseText;
  3126.  
  3127. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3128. {
  3129. DisplayTheCheckedLinks([link], 'alive_link');
  3130. return;
  3131. }
  3132.  
  3133. if (res.match(/achtung\.jpg"/))
  3134. {
  3135. DisplayTheCheckedLinks([link], 'adead_link');
  3136. }
  3137. },
  3138. onerror: function ()
  3139. {
  3140. displayTheCheckedLink(link, 'unava_link');
  3141. }
  3142. });
  3143. }
  3144. }
  3145.  
  3146. function megaBulkCheck()
  3147. {
  3148. var arr = this.links[0].split("\r\n");
  3149. var i = arr.length;
  3150. var seqno = Math.floor(Math.random()*1000000000);
  3151. while(i--)
  3152. {
  3153. postRequest(arr[i]);
  3154. }
  3155. function postRequest(megaLink)
  3156. {
  3157. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3158. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3159. GM_xmlhttpRequest(
  3160. {
  3161. method: "POST",
  3162. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3163. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3164. headers: {
  3165. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3166. 'Content-Type': 'application/xml',
  3167. 'Referer': "https://mega.co.nz/"
  3168. },
  3169. onload: function (result)
  3170. {
  3171. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3172. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3173. {
  3174.  
  3175. DisplayTheCheckedLinks([id], 'adead_link');
  3176. }
  3177. if (res.at)
  3178. {
  3179. DisplayTheCheckedLinks([id], 'alive_link');
  3180. }
  3181. if (res.e == "ETEMPUNAVAIL")
  3182. {
  3183. DisplayTheCheckedLinks([id], 'unava_link');
  3184. }
  3185. }
  3186. });
  3187. }
  3188.  
  3189. }
  3190.  
  3191. function oboomBulk() {
  3192. var a = [], b = [], c = [];
  3193. var array = this.links;
  3194.  
  3195. GM_xmlhttpRequest({
  3196. method: 'GET',
  3197. url: 'https://www.oboom.com/1/guestsession',
  3198. headers: {
  3199. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3200. 'Content-type': 'application/x-www-form-urlencoded',
  3201. 'Referer': 'https://www.oboom.com',
  3202. 'X-Requested-With': 'XMLHttpRequest'
  3203. },
  3204. onload: function(result) {
  3205. var blockIdx = array.length;
  3206. var token = JSON.parse(result.responseText)[1];
  3207. while (blockIdx--) {
  3208. startCheck(array[blockIdx].split('\r\n'), token);
  3209. }
  3210. }
  3211. });
  3212.  
  3213. function startCheck(links, token) {
  3214. GM_xmlhttpRequest({
  3215. method: 'POST',
  3216. url: "https://api.oboom.com/1/info",
  3217. headers: {
  3218. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3219. 'Content-type': 'application/x-www-form-urlencoded',
  3220. 'Referer': 'https://www.oboom.com/',
  3221. 'X-Requested-With': 'XMLHttpRequest'
  3222. },
  3223. data: "token=" + token + "&items=" + links.join(","),
  3224. onload: function(result) {
  3225. var res = JSON.parse(result.responseText)[1];
  3226. var i = res.length, s;
  3227.  
  3228. while (i--) {
  3229. s = res[i].state;
  3230. if (s == 'online') a.push(res[i].id);
  3231. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' || s == 'expired' ) b.push(res[i].id);
  3232. else c.push(res[i].id);
  3233. }
  3234.  
  3235. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3236. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3237. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3238. }
  3239. });
  3240. }
  3241. }
  3242. function linksaveBulkCheck()
  3243. {
  3244. var arr = this.links[0].split("\r\n");
  3245. var i = arr.length;
  3246. while(i--)
  3247. {
  3248. postRequest(arr[i]);
  3249. }
  3250. function postRequest(lsLink)
  3251. {
  3252. GM_xmlhttpRequest(
  3253. {
  3254. method: "GET",
  3255. url: lsLink + '-t.jpg',
  3256. headers: {
  3257. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3258. 'Accept': 'text/xml',
  3259. 'Referer': ""
  3260. },
  3261. onload: function (result)
  3262. {
  3263. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3264. if (imgLen == 965) //online
  3265. {
  3266. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3267. }
  3268.  
  3269. if (imgLen == 972) //offline
  3270. {
  3271. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3272. }
  3273. if (imgLen == 978) //unava
  3274. {
  3275. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3276. }
  3277. }
  3278. });
  3279. }
  3280.  
  3281. }
  3282. function linkcryptBulkCheck()
  3283. {
  3284. var arr = this.links[0].split("\r\n");
  3285. var i = arr.length;
  3286. while(i--)
  3287. {
  3288. postRequest(arr[i]);
  3289. }
  3290. function postRequest(lcLink)
  3291. {
  3292. GM_xmlhttpRequest(
  3293. {
  3294. method: "GET",
  3295. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3296. headers: {
  3297. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3298. 'Accept': 'text/xml',
  3299. 'Referer': ""
  3300. },
  3301. onload: function (result)
  3302. {
  3303. var res = result.responseText;
  3304. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3305. {
  3306. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3307. return;
  3308. }
  3309. if (res.match(/folderStatus>1/)) //Online status
  3310. {
  3311. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3312. }
  3313. else
  3314. {
  3315. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3316. }
  3317. }
  3318. });
  3319. }
  3320. }
  3321.  
  3322. function megashareBulkCheck()
  3323. {
  3324. var arr = this.links[0].split("\r\n");
  3325. var i = arr.length;
  3326. while(i--)
  3327. {
  3328. postRequest(arr[i]);
  3329. }
  3330. function postRequest(msLink)
  3331. {
  3332. GM_xmlhttpRequest(
  3333. {
  3334. method: "GET",
  3335. url: msLink,
  3336. headers: {
  3337. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3338. 'Content-Type': 'application/x-www-form-urlencoded',
  3339. 'Referer': ""
  3340. },
  3341. onload: function (result)
  3342. {
  3343. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3344. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3345. if ((prZVal == null) || (btn3Name == null))
  3346. {
  3347. return;
  3348. }
  3349. GM_xmlhttpRequest(
  3350. {
  3351. method: "POST",
  3352. url: msLink,
  3353. headers: {
  3354. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3355. 'Content-Type': 'application/x-www-form-urlencoded',
  3356. 'Referer': ""
  3357. },
  3358. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3359. onload: function (result)
  3360. {
  3361. var res = result.responseText;
  3362. if (res.match(/<div id="err">/))
  3363. {
  3364. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3365. }
  3366. else
  3367. {
  3368. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3369. }
  3370. }
  3371. });
  3372. }
  3373. });
  3374. }
  3375. }
  3376. function ncryptBulkCheck()
  3377. {
  3378. var arr = this.links[0].split("\r\n");
  3379. var i = arr.length;
  3380. while(i--)
  3381. {
  3382. postRequest(arr[i]);
  3383. }
  3384. function postRequest(ncryptLink)
  3385. {
  3386. GM_xmlhttpRequest(
  3387. {
  3388. method: "POST",
  3389. url: 'http://ncrypt.in/api_status.php',
  3390. headers: {
  3391. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3392. 'Content-Type': 'application/x-www-form-urlencoded',
  3393. 'Referer': ""
  3394. },
  3395. data: 'link=' + encodeURI(ncryptLink),
  3396. onload: function (result)
  3397. {
  3398. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3399. switch(foldStatus + ""){
  3400. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3401. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3402. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3403. }
  3404. }
  3405. });
  3406. }
  3407. }
  3408. function hellshareBulkCheck()
  3409. {
  3410. var links = this.links;
  3411. GM_xmlhttpRequest(
  3412. {
  3413. method: "GET",
  3414. url: 'http://www.hellshare.com',
  3415. headers: {
  3416. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3417. 'Accept': 'text/xml',
  3418. 'Referer': ""
  3419. },
  3420. onload: function (result)
  3421. {
  3422. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3423.  
  3424. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3425. if (domain == 'sk')
  3426. loc = 'check=Skontrolova%C5%A5&links=';
  3427. if (domain == 'com')
  3428. loc = 'check=Check+availability&links=';
  3429. if (domain == 'hu')
  3430. loc = 'check=Kontrol%C3%A1lj&links=';
  3431. if (domain == 'pl')
  3432. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3433.  
  3434. genBulkCheck.call({ links: links,
  3435. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3436. postData: loc,
  3437. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3438. 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,
  3439. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3440. resUnavaRegex: null
  3441. });
  3442. }
  3443. });
  3444. }
  3445. /**
  3446. * Displays check result
  3447. * @param {Array} Array of links or link fragments.
  3448. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3449. */
  3450. function DisplayTheCheckedLinks(links, resultStatus)
  3451. {
  3452. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3453. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3454. if (Do_not_linkify_DL_links)
  3455. { //TODO into separate jQuery function
  3456. $links.replaceWith(function(){
  3457. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3458. });
  3459. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3460. }
  3461. $links.removeClass().addClass(resultStatus);
  3462. $links.each(function() {
  3463. this.href = Ref_anonymize_service + $(this).attr("href");
  3464. });
  3465. switch(resultStatus)
  3466. {
  3467. case "alive_link": cLinksAlive += $links.length;
  3468. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3469. break;
  3470. case "adead_link": cLinksDead += $links.length;
  3471. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3472. break;
  3473. case "unava_link": cLinksUnava += $links.length; break;
  3474. default:
  3475. }
  3476. cLinksProcessed += $links.length;
  3477. }
  3478. }
  3479. // starts bulkchecking
  3480. //
  3481. // params
  3482. // filterId [string] restricts link detection with passed id attribute
  3483. function startBulkCheck(filterId)
  3484. {
  3485. var cHosts = bulkHosts.length;
  3486. if (cHosts == 0) //no filehostings selected
  3487. return;
  3488. // STEP 1 linkify the links
  3489. var linkifyRegex = '';
  3490. var hostIdx = cHosts;
  3491. while(hostIdx--)
  3492. {
  3493. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3494. }
  3495. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3496. linkify(linkifyRegex);
  3497. //
  3498. //STEP 2 detect link objects
  3499. var xpathAll = '';
  3500. var hostIdx = cHosts;
  3501. while(hostIdx--)
  3502. {
  3503. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3504. }
  3505. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3506. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3507. if (filterId != null) //insert id restriction in the xpath
  3508. {
  3509. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3510. }
  3511. else
  3512. {
  3513. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3514. }
  3515. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3516. if (filterId == null)
  3517. {
  3518. cLinksTotal += links.snapshotLength;
  3519. }
  3520. //
  3521. //STEP 3 bind links with hostings
  3522. var linkIdx = links.snapshotLength;
  3523. var href = null;
  3524. if (linkIdx == 0) // no links found
  3525. return;
  3526. var name;
  3527. while (linkIdx--)
  3528. {
  3529. href = links.snapshotItem(linkIdx).href;
  3530. try // DO NOT REMOVE, filters crap that went through xpath detection
  3531. {
  3532. name = gimmeHostName(href);
  3533. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3534. bulkHostNames[name].links.push(href);
  3535. }
  3536. catch(e)
  3537. {
  3538.  
  3539. }
  3540. }
  3541. //
  3542. //STEP 4 process the links for each filehosting
  3543. var hostIdx = cHosts;
  3544. var host;
  3545. var m,n;
  3546. var arr;
  3547. while (hostIdx--)
  3548. {
  3549. host = bulkHosts[hostIdx];
  3550. arr = host.links;
  3551. if (arr.length == 0) //no links for this hosting, skip
  3552. {
  3553. continue;
  3554. }
  3555. //links match corrections
  3556. if (host.corrMatch != null)
  3557. {
  3558. var idx = arr.length;
  3559. while (idx--)
  3560. {
  3561. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3562. }
  3563. }
  3564. //links replace corrections
  3565. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3566. {
  3567. var idx = arr.length;
  3568. while (idx--)
  3569. {
  3570. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3571. }
  3572. }
  3573. m = arr.length;
  3574. n = host.blockSize;
  3575. if (m > n)
  3576. {
  3577. //insert block separators (RAND_STRING) into the array
  3578. for(var i = n; i < m; i += n + 1)
  3579. {
  3580. arr.splice(i, 0, RAND_STRING);
  3581. }
  3582. }
  3583.  
  3584. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3585. apiUrl: host.apiUrl,
  3586. postData: host.postData,
  3587. resLinkRegex: host.resLinkRegex,
  3588. resLiveRegex: host.resLiveRegex,
  3589. resDeadRegex: host.resDeadRegex,
  3590. resUnavaRegex: host.resUnavaRegex
  3591. });
  3592. //clean up
  3593. arr.length = 0;
  3594. }
  3595. //
  3596.  
  3597. function gimmeHostName(link)
  3598. {
  3599. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3600. }
  3601. }
  3602. function checkLinks(filterId)
  3603. {
  3604. startBulkCheck(filterId);
  3605. start(filterId);
  3606. }
  3607.  
  3608. /**
  3609. * Initialises progress box including event binding and CSS
  3610. */
  3611. function initProgressBox()
  3612. {
  3613. if ($("#warlc-progressbox").length > 0)
  3614. return;
  3615. //progressbox css change size and color of progress box
  3616. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3617. "; opacity:" + (Progress_box_opacity / 100) +
  3618. "; bottom:" + Progress_box_pos_bottom +
  3619. "px; right:" + Progress_box_pos_right +
  3620. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3621. \
  3622. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3623. \
  3624. .warlc-progressitem {}\
  3625. \
  3626. .alive {color:#00FF7F; " + Live_links_color +
  3627. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3628. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3629. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3630. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3631. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3632. );
  3633. //
  3634. $('body').append(' <div id="warlc-progressbox">\
  3635. <div class="warlc-progressbar"></div>\
  3636. <span class="warlc-progressitem alive"></span> - \
  3637. <span class="warlc-progressitem dead"></span> - \
  3638. <span class="warlc-progressitem unava"></span> - \
  3639. <span class="warlc-progressitem prem"></span> - \
  3640. <span class="warlc-progressitem processing"></span>\
  3641. </div>');
  3642. $('#warlc-progressbox').hide().click(function(){
  3643. clearInterval(intervalId);
  3644. $(this).hide();
  3645. return false;
  3646. });
  3647. $(".warlc-progressbar").progressbar({complete: function(){
  3648. $(this).fadeOut();
  3649. clearInterval(intervalId); //stop refreshing the stats
  3650. }
  3651. })
  3652. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3653. }
  3654. /**
  3655. * Updates progress data in progress box
  3656. */
  3657. function updateProgress()
  3658. {
  3659. if (cLinksTotal) // some links were detected on page
  3660. {
  3661. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3662. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3663. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3664. if ((cLinksTotal - cLinksProcessed) == 0)
  3665. {
  3666. $progressItems.first().text(cLinksAlive)
  3667. .next().text(cLinksDead)
  3668. .next().text(cLinksUnava)
  3669. .next().text(cLinksprem)
  3670. .next().remove();
  3671. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3672. $('#warlc-progressbox div:first-child').remove();
  3673. }
  3674. else
  3675. {
  3676. $progressItems.first().text(cLinksAlive)
  3677. .next().text(cLinksDead)
  3678. .next().text(cLinksUnava)
  3679. .next().text(cLinksprem)
  3680. .next().text(cLinksTotal - cLinksProcessed);
  3681. }
  3682. }
  3683. }
  3684.  
  3685. function check_all_links()
  3686. {
  3687. add_WARLC_style();
  3688.  
  3689. if (Show_progress_stats)
  3690. {
  3691. initProgressBox();
  3692. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3693. }
  3694.  
  3695. startBulkCheck(null);
  3696. start(null);
  3697.  
  3698. if (!containers_processed)
  3699. {
  3700. processContainers();
  3701. }
  3702. }
  3703.  
  3704. //Copies all found dead links to clipboard - right now for Scriptish only
  3705. function copy_dead_to_clipboard()
  3706. {
  3707. initClipBoardTools();
  3708.  
  3709. var deadlinksxpath = "//.[@class='adead_link']";
  3710.  
  3711. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3712. var foundlinkstext = '';
  3713.  
  3714. var foundlinkIdx = foundlinks.snapshotLength;
  3715.  
  3716. while(foundlinkIdx--)
  3717. {
  3718. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3719. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3720. }
  3721.  
  3722. unsafeWindow.copyToClipboard(foundlinkstext);
  3723. }
  3724.  
  3725. function toggle_autocheck()
  3726. {
  3727. var currentState = GM_getValue("Autocheck", false);
  3728. GM_setValue("Autocheck", !currentState);
  3729.  
  3730. if (currentState == true)
  3731. {
  3732. sendMessage('Autocheck disabled', 'red');
  3733. }
  3734. else
  3735. {
  3736. sendMessage('Autocheck enabled', 'SpringGreen');
  3737. }
  3738. }
  3739. function toggle_Enable_Anonymizer()
  3740. {
  3741. var currentState = GM_getValue("Enable_Anonymizer", false);
  3742. GM_setValue("Enable_Anonymizer", !currentState);
  3743.  
  3744. if (currentState == true)
  3745. {
  3746. GM_setValue("Ref_anonymize_service", "");
  3747. sendMessage('Anonymizer Disabled', 'red');
  3748. }
  3749. else
  3750. {
  3751. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3752. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3753. }
  3754. }
  3755.  
  3756. function KeyDownHandler(event)
  3757. {
  3758. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3759. if (event.ctrlKey && event.altKey)
  3760. {
  3761. switch(kcode)
  3762. {
  3763. case 65 : check_all_links(); break;
  3764. case 67 : configuration(); break;
  3765. case 68 : copy_dead_to_clipboard(); break;
  3766. case 87 : toggle_autocheck(); break;
  3767. case 90 : toggle_Enable_Anonymizer(); break;
  3768. }
  3769. }
  3770. }
  3771.  
  3772. //
  3773. //
  3774. // SCRIPT EXECUTION START POINT
  3775. //
  3776. //
  3777. // Safari specific GM_getResourceText override
  3778. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3779. {
  3780. GM_getResourceText = function(res) {
  3781. var $cssText = GM_getValue("jquery_css", "");
  3782. if ($cssText == "")
  3783. {
  3784. GM_xmlhttpRequest(
  3785. {
  3786. method: 'GET',
  3787. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3788. onload: function (result)
  3789. {
  3790. GM_setValue("jquery_css", result.responseText);
  3791. window.location.reload();
  3792. }
  3793. });
  3794. }
  3795. else
  3796. {
  3797. return $cssText;
  3798. }
  3799. }
  3800. }
  3801. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3802. GM_addStyle(jQueryUICSS);
  3803. //init the stuff
  3804. setVariables();
  3805. initBulkCheck();
  3806. //init info boxes
  3807. messageBox.style.position = 'fixed';
  3808. messageBox.style.top = '20px';
  3809. messageBox.style.left = '10px';
  3810. messageBox.style.opacity = '0.85';
  3811. messageBox.style.background = 'DimGray';
  3812. messageBox.style.fontSize = '36px';
  3813. document.body.appendChild(messageBox);
  3814.  
  3815. //register GM menu commands & keyboard shortcut event handler
  3816. if (Keyboard_functions)
  3817. {
  3818. $(document).keydown(KeyDownHandler);
  3819. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3820. 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);
  3821. }
  3822. else
  3823. {
  3824. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3825. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3826. }
  3827.  
  3828. //start linkchecking
  3829. if (Autocheck)
  3830. {
  3831. $(document).ready(check_all_links);
  3832. }
  3833.  
  3834. //
  3835. //
  3836. // SCRIPT EXECUTION END POINT
  3837. //
  3838. //
  3839.  
  3840. //shows configuration box
  3841. function configuration()
  3842. {
  3843.  
  3844. //prevent multiple creating of config window
  3845. if ($("#hideshow").length)
  3846. {
  3847. $("#hideshow").show();
  3848. return;
  3849. }
  3850.  
  3851. var configcss = '\
  3852. .popup_block .popup fieldset{\
  3853. padding: 1%;\
  3854. border-style: solid;\
  3855. border-width: 1px;\
  3856. border-color: gray;\
  3857. margin-bottom: 1px;\
  3858. }\
  3859. #h3hideshowtitle{\
  3860. font-size: 2em;\
  3861. }\
  3862. #h3hideshow{\
  3863. font-size: 1.5em;\
  3864. }\
  3865. #imghideshow {\
  3866. border: none;\
  3867. }\
  3868. #plusimage{\
  3869. display:inline;\
  3870. }\
  3871. #hideshow {\
  3872. position: fixed;\
  3873. width: 100%;\
  3874. height: 100%;\
  3875. top: 0;\
  3876. left: 0;\
  3877. font-size:12px;\
  3878. z-index:2147483645;\
  3879. text-align:left;\
  3880. }\
  3881. #fade {\
  3882. background: #000;\
  3883. position: fixed;\
  3884. width: 100%;\
  3885. height: 100%;\
  3886. opacity: .80;\
  3887. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3888. left: 0;\
  3889. z-index: 10;\
  3890. }\
  3891. .popup_block {\
  3892. font-family:verdana;\
  3893. color:black;\
  3894. background: #ddd;\
  3895. padding: 10px 20px;\
  3896. border: 2px solid DarkOrange;\
  3897. float: left;\
  3898. width: 700px;\
  3899. position: absolute;\
  3900. top: 7%;\
  3901. left: 50%;\
  3902. bottom: 7%;\
  3903. margin: 0 0 0 -350px;\
  3904. -moz-border-radius:10px;\
  3905. z-index: 100;\
  3906. \
  3907. }\
  3908. .popup_block .popup {\
  3909. float: left;\
  3910. width: 100%;\
  3911. background: #fff;\
  3912. margin: 10px 0;\
  3913. padding: 0px 0 0px;\
  3914. border-left: 1px solid #bbb;\
  3915. border-top: 1px solid #bbb;\
  3916. border-right: 1px solid #bbb;\
  3917. }\
  3918. #h3hideshow{\
  3919. margin: 1px 0 0px;\
  3920. padding: 1px 10px;\
  3921. border-bottom: 1px solid #bbb;\
  3922. font-size: 1.5em;\
  3923. font-weight: normal;\
  3924. cursor:pointer;\
  3925. background:#DDDDDD none repeat scroll 0 0;\
  3926. }\
  3927. #h3hideshow:hover{\
  3928. background:#C0BEBE none repeat scroll 0 0;\
  3929. }\
  3930. #h3hideshowtitle{\
  3931. margin: 2px 0 0px;\
  3932. padding: 7px 10px;\
  3933. border-bottom: 1px solid #bbb;\
  3934. font-size: 1.5em;\
  3935. font-weight: normal;\
  3936. }\
  3937. .popup_block .popup a {\
  3938. color:DarkSkyBlue;\
  3939. text-decoration:none;\
  3940. }\
  3941. .popup p {\
  3942. padding: 1px 10px;\
  3943. margin: 0px 0;\
  3944. -x-system-font:none;\
  3945. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3946. font-size:10pt;\
  3947. font-size-adjust:none;\
  3948. font-stretch:normal;\
  3949. font-style:normal;\
  3950. font-variant:normal;\
  3951. font-weight:normal;\
  3952. line-height:normal;\
  3953. }\
  3954. #sites {\
  3955. padding: 1px 10px;\
  3956. margin: 0px 0;display:inline-block;width:16em;\
  3957. }\
  3958. #dev_ver {\
  3959. color: #00FF00;\
  3960. background: Black;\
  3961. text-align: right;\
  3962. }\
  3963. #sites_suspended {\
  3964. padding: 1px 10px;\
  3965. margin: 0px 0;display:inline-block;width:16em;\
  3966. text-decoration: line-through;\
  3967. }\
  3968. .popup img.cntrl {\
  3969. position: absolute;\
  3970. right: -15px;\
  3971. top: -15px;\
  3972. }\
  3973. #bulk {\
  3974. font-size:8pt;\
  3975. color:orange;\
  3976. padding: 1px 10px;\
  3977. margin: 0px 0;\
  3978. display:inline-block;\
  3979. width:100px;\
  3980. }\
  3981. #note {\
  3982. font-size:7pt;\
  3983. color:gray;\
  3984. padding: 1px 10px;\
  3985. margin: 0px 0;display:inline-block;\
  3986. min-width:100px;\
  3987. }\
  3988. #rednote {\
  3989. font-size:7pt;\
  3990. color:red;\
  3991. padding: 1px 10px;\
  3992. margin: 0px 0;display:inline-block;\
  3993. }\
  3994. #configinfo {\
  3995. font-size:8pt;\
  3996. color:gray;\
  3997. padding: 1px 10px;\
  3998. margin: 0px 0;display:inline-block;width:60em;\
  3999. }\
  4000. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4001. color:black;\
  4002. border-style: solid;\
  4003. border-width: 1px;\
  4004. border-color: gray;\
  4005. }\
  4006. #h3hideshowcontent {\
  4007. min-height:220px;\
  4008. max-height:220px;\
  4009. overflow:auto;\
  4010. display: none;\
  4011. padding: 10px 10px;\
  4012. }\
  4013. #specinfo{\
  4014. font-size:14px;\
  4015. }\
  4016. .warlc-ui-tab {\
  4017. height:300px;\
  4018. overflow:auto;\
  4019. }\
  4020. #warlcsitelist2, #warlcsitelist1 {\
  4021. height:220px;\
  4022. border-top: 1px solid #ddd;\
  4023. padding-top: 5px;\
  4024. overflow:auto;\
  4025. }\
  4026. input:hover+label {\
  4027. background:#F1F77C;\
  4028. font-size:110%;\
  4029. }\
  4030. ';
  4031.  
  4032. GM_addStyle(configcss);
  4033.  
  4034. var customRulesRefHTML =
  4035. '\
  4036. <br>\
  4037. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4038. <b>@keyword</b> <i>parameter</i>\
  4039. <br><br>\
  4040. 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. \
  4041. <br><br>\
  4042. 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.\
  4043. 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.\
  4044. 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.\
  4045. 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,\
  4046. but all commands until the next valid @customrule are ignored.<br><br>\
  4047. Available forms and types:\
  4048. <ul>\
  4049. <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.\
  4050. <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.\
  4051. <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.\
  4052. <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.\
  4053. </ul>\
  4054. Other available commands:<br>\
  4055. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4056. <ul>\
  4057. <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.\
  4058. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4059. <ul>examples:<br>\
  4060. <li>good: <i>filehost.com/download/</i><br>\
  4061. <li>good: <i>download.filehost.net/?d=</i><br>\
  4062. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4063. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4064. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4065. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4066. <li>bad: <i>filehost.com</i> - no slash<br>\
  4067. </ul>\
  4068. \
  4069. <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.\
  4070. 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 \
  4071. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4072. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4073. 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.)\
  4074. Two spaces again match any whitespace.\
  4075. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4076. Two spaces again match any whitespace.\
  4077. <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. \
  4078. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4079. </ul>\
  4080. \
  4081. ';
  4082.  
  4083. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4084. var configurationinnerHTML =
  4085. '<div id="fade"></div>\
  4086. <div class="popup_block">\
  4087. <div class="popup">\
  4088. <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/uIjp9FAbnzWttbV3H3ECWFWdnubTuSBulQ9AwDs2jcSPGby6evGn7sIG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FzF0PiC8DuPcLhj6QfOGYAXcDjz55Knv1xVx+YCiwDLINdKYdMXjqAVLzR99LqN8oebWqNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4090. <div id="warlc-conf-tabs">\
  4091. <ul>\
  4092. <li><a href="#tabs-1">Filehostings</a></li>\
  4093. <li><a href="#tabs-2">Containers</a></li>\
  4094. <li><a href="#tabs-5">Custom rules</a></li>\
  4095. <li><a href="#tabs-3">Settings</a></li>\
  4096. <li><a href="#tabs-4">About</a></li>\
  4097. </ul>\
  4098. <div id="tabs-1" class="warlc-ui-tab">\
  4099. <div class="warlc-ui-buttonset">\
  4100. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4101. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4102. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4103. </div><br>\
  4104. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4105. <div id="warlcsitelist1"><span>Empty</span></div>\
  4106. </div>\
  4107. <div id="tabs-2" class="warlc-ui-tab">\
  4108. <div class="warlc-ui-buttonset">\
  4109. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4110. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4111. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4112. </div><br>\
  4113. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4114. <div id="warlcsitelist2"><span>Empty</span></div>\
  4115. </div>\
  4116. <div id="tabs-5" class="warlc-ui-tab">\
  4117. <div class="warlcsettings">\
  4118. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4119. <br>\
  4120. <div>Edit custom rules: \
  4121. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4122. <div id="customRulesReference" style="display:none;">'
  4123. + customRulesRefHTML + '\
  4124. </div>\
  4125. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4126. </div>\
  4127. </div>\
  4128. </div>\
  4129. <div id="tabs-3" class="warlc-ui-tab">\
  4130. <div class="warlcsettings">\
  4131. <fieldset>\
  4132. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4133. <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>\
  4134. </fieldset>\
  4135. <fieldset>\
  4136. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4137. <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>\
  4138. <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>\
  4139. <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>\
  4140. <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>\
  4141. <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>\
  4142. <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>\
  4143. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4144. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4145. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4146. <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>\
  4147. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4148. <fieldset>\
  4149. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4150. <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>\
  4151. <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>\
  4152. <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>\
  4153. </fieldset>\
  4154. </fieldset>\
  4155. <fieldset>\
  4156. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4157. </fieldset>\
  4158. <fieldset>\
  4159. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4160. </fieldset>\
  4161. <fieldset>\
  4162. <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>\
  4163. </fieldset>\
  4164. <fieldset>\
  4165. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4166. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4167. </fieldset>\
  4168. </div>\
  4169. </div>\
  4170. <div id="tabs-4" class="warlc-ui-tab">\
  4171. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4172. <br />\
  4173. <p><b>Currently supported:</b><br>\
  4174. Filehostings: ' + allHostNames.length + '<br />\
  4175. Containers: ' + allContainerNames.length + '<br />\
  4176. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4177. <br />\
  4178. <p><b>Based on:</b><br>\
  4179. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4180. <br />\
  4181. <p><b>Uses:</b></p>\
  4182. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4183. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4184. <br />\
  4185. <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>\
  4186. </div>\
  4187. </div>\
  4188. </div>\
  4189. </div>';
  4190. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4191. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4192. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4193. var elmHostList = document.getElementById("warlcsitelist1");
  4194. var elmContainerList = document.getElementById("warlcsitelist2");
  4195. buildSettings();
  4196. buildSitelist("", allHostNames, elmHostList);
  4197. buildSitelist("", allContainerNames, elmContainerList);
  4198. if (DEBUG_MODE)
  4199. {
  4200. //log all sites availability status
  4201. diagSites();
  4202. }
  4203. //handler for checkbox state change
  4204. function changeConfiguration(e)
  4205. {
  4206. var element = e.target;
  4207.  
  4208. if (element.type == 'checkbox')
  4209. {
  4210. if (element.checked == 1)
  4211. {
  4212. GM_setValue(element.id, true);
  4213. }
  4214. else
  4215. {
  4216. GM_setValue(element.id, false);
  4217. }
  4218.  
  4219. }
  4220. setVariables();
  4221. }
  4222.  
  4223. //Selects all filehosting checkboxes
  4224. function selectAll()
  4225. {
  4226. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4227. .each(function(index, element){GM_setValue(this.id, true)});
  4228. }
  4229.  
  4230. //Deselects all filehosting checkboxes
  4231. function selectNone()
  4232. {
  4233. $(":checkbox:visible:checked").prop("checked",false)
  4234. .each(function(index, element){GM_setValue(this.id, false)});
  4235. }
  4236.  
  4237. //Inverts filehosting checkboxes selection
  4238. function selectInvert()
  4239. {
  4240. var $checked = $(":checkbox:visible:checked");
  4241. var $unchecked = $(":checkbox:visible:not(:checked)");
  4242. $unchecked.prop("checked",true)
  4243. .each(function(index, element){GM_setValue(this.id, true)});
  4244. $checked.prop("checked",false)
  4245. .each(function(index, element){GM_setValue(this.id, false)});
  4246. }
  4247. //toggles anonymizer on off
  4248. function Enable_Anonymizer()
  4249. {
  4250. var $checked = $(":checkbox:visible:checked");
  4251. var $unchecked = $(":checkbox:visible:not(:checked)");
  4252. $unchecked.prop("checked",true)
  4253. .each(function(index, element){GM_setValue(this.id, true)});
  4254. $checked.prop("checked",false)
  4255. .each(function(index, element){GM_setValue(this.id, false)});
  4256. }
  4257.  
  4258. function changeRefAnonymizer(){
  4259. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4260. }
  4261.  
  4262. //Sets live links color
  4263. function changeColorLive()
  4264. {
  4265. var inColorLive = document.getElementById("inputColorLive");
  4266. inColorLive.style.background = inColorLive.value;
  4267. GM_setValue("Live_links_color", inColorLive.value);
  4268. }
  4269.  
  4270. //Sets dead links color
  4271. function changeColorDead()
  4272. {
  4273. var inColorDead = document.getElementById("inputColorDead");
  4274. inColorDead.style.background = inColorDead.value;
  4275. GM_setValue("Dead_links_color", inColorDead.value);
  4276. }
  4277.  
  4278. //Sets temp. unavailable links color
  4279. function changeColorTemp()
  4280. {
  4281. var inColorTemp = document.getElementById("inputColorTemp");
  4282. inColorTemp.style.background = inColorTemp.value;
  4283. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4284. }
  4285.  
  4286. //Sets temp. unavailable links color
  4287. function changeColorCont()
  4288. {
  4289. var inColorCont = document.getElementById("inputColorCont");
  4290. inColorCont.style.background = inColorCont.value;
  4291. GM_setValue("Container_links_color", inColorCont.value);
  4292. }
  4293. //Sets premium. links color
  4294. function changeColorprem()
  4295. {
  4296. var inColorprem = document.getElementById("inputColorprem");
  4297. inColorprem.style.background = inColorprem.value;
  4298. GM_setValue("Premium_links_color", inColorprem.value);
  4299. }
  4300.  
  4301. //Diagnose sites for availability
  4302. function diagSites()
  4303. {
  4304. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4305.  
  4306. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4307. {
  4308. if (boxes[i].type == "checkbox")
  4309. {
  4310. checkAvailability(boxes[i]);
  4311. }
  4312. }
  4313.  
  4314. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4315.  
  4316. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4317. {
  4318. if (boxes[i].type == "checkbox")
  4319. {
  4320. checkAvailability(boxes[i]);
  4321. }
  4322. }
  4323.  
  4324. function checkAvailability(cbElm)
  4325. {
  4326. var cb = cbElm;
  4327. GM_xmlhttpRequest(
  4328. {
  4329. method: 'HEAD',
  4330. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4331. headers: {
  4332. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4333. 'Accept': 'text/xml',
  4334. 'Referer': ""
  4335. },
  4336. onload: function (result)
  4337. {
  4338. if (result.status != 200)
  4339. {
  4340. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4341. }
  4342. },
  4343. onerror: function (result)
  4344. {
  4345. if (result.status != 200)
  4346. {
  4347. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4348. }
  4349. }
  4350. });
  4351. }
  4352. }
  4353. function buildSettings()
  4354. {
  4355. $(".warlcsettings :checkbox").each(function(){
  4356. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4357. .click(function(e){
  4358. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4359. setVariables();
  4360. });
  4361. })
  4362. }
  4363. //Dynamic build of host list
  4364. //param search [string] searches for hostnames matching search substring
  4365. //param siteNames [array] array of site names
  4366. //param targetNode [DOM Node] where the list should be built
  4367. // first child node is replaced
  4368. function buildSitelist(search, siteNames, targetNode)
  4369. {
  4370. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4371. var $targetNode = $(targetNode).empty();
  4372. var searchedSite = "";
  4373. $.each(siteNames, function(i, site){
  4374. if (searchedSite = site.match(searchRegex))
  4375. {
  4376. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4377. //ensuring backward compatibility with the rest of code, to be refactored later
  4378. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4379. //
  4380. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4381. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4382. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4383. );
  4384. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4385. .change(changeConfiguration);
  4386. $targetNode.append('<br />');
  4387. }
  4388. });
  4389. $targetNode.append("<hr>");
  4390. //obsolete hosts checkbox
  4391. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4392. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4393. .change(changeConfiguration);
  4394. $targetNode.append('<br />');
  4395. var foundName = "";
  4396. $.each(allObsoleteNames, function(i, site){
  4397. if (foundName = allObsoleteNames[i].match(searchRegex))
  4398. {
  4399. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4400. }
  4401. })
  4402. }
  4403. var hostSearchBox = document.getElementById("hostSearchBox");
  4404. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4405. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4406. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4407. $(".warlc-ui-select-all").click(selectAll).button();
  4408. $(".warlc-ui-select-none").click(selectNone).button();
  4409. $(".warlc-ui-select-invert").click(selectInvert).button();
  4410. $(".warlc-ui-buttonset").buttonset();
  4411. var inColorLive = document.getElementById("inputColorLive");
  4412. inColorLive.addEventListener('keyup', changeColorLive, false);
  4413.  
  4414. var inColorDead = document.getElementById("inputColorDead");
  4415. inColorDead.addEventListener('keyup', changeColorDead, false);
  4416.  
  4417. var inColorTemp = document.getElementById("inputColorTemp");
  4418. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4419.  
  4420. var inColorCont = document.getElementById("inputColorCont");
  4421. inColorCont.addEventListener('keyup', changeColorCont, false);
  4422. var inColorprem = document.getElementById("inputColorprem");
  4423. inColorprem.addEventListener('keyup', changeColorprem, false);
  4424. $("#refAnonymizer").change(changeRefAnonymizer);
  4425. //buttons and edit boxes init end
  4426.  
  4427. //icon sets radio buttons
  4428. var radioButtons = document.getElementsByName("warlciconset");
  4429. radioButtons[Icon_set].checked = "checked";
  4430.  
  4431. radioButtons[0].addEventListener("change", updateIconSet);
  4432. radioButtons[1].addEventListener("change", updateIconSet);
  4433. radioButtons[2].addEventListener("change", updateIconSet);
  4434. radioButtons[3].addEventListener("change", updateIconSet);
  4435. function updateIconSet()
  4436. {
  4437. GM_setValue("Icon_set", this.value * 1);
  4438. }
  4439. //
  4440. $('#showCustomRulesReference').click(function(e){
  4441. e.preventDefault();
  4442. $('#customRulesReference').toggle();
  4443. });
  4444. $('#Custom_rules_text')
  4445. .val(Custom_rules_text)
  4446. .change(saveCustomRules);
  4447. function saveCustomRules(e)
  4448. {
  4449. var cr = parseCustomRules(this.value);
  4450. if (cr.info.length)
  4451. 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, ' '));
  4452. GM_setValue('Custom_rules_text', this.value);
  4453. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4454. }
  4455. }
  4456.  
  4457. //begin standard link checking algorithm
  4458. function start(filterId)
  4459. {
  4460. var doNotLinkify = Do_not_linkify_DL_links;
  4461.  
  4462. // USER SELECTED FILE HOSTS INITIALIZATION START
  4463. var http_file_hosts = new Array(); //standard hostings
  4464. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4465. var http_file_hosts_obsolete = new Array(); //dead hostings
  4466. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4467.  
  4468. initFileHosts();
  4469. initFileHostsHeadersOnly();
  4470. initFileHostsCustom(); //CustomRules
  4471. // USER SELECTED FILE HOSTS INITIALIZATION END
  4472.  
  4473. // LINKIFICATION START
  4474. var totalxpath = '';
  4475. var totalxpathcoded = '';
  4476. var totalxpathobsolete = '';
  4477. var totalxpathheadersonly = '';
  4478. var totalourls = '';
  4479.  
  4480. var filehostLen = http_file_hosts.length;
  4481. var filehostCodedLen = http_file_hosts_coded.length;
  4482. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4483. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4484.  
  4485. var filehostIdx = filehostLen;
  4486. var filehostCodedIdx = filehostCodedLen;
  4487. var filehostObsoleteIdx = filehostObsoleteLen;
  4488. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4489.  
  4490. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4491. return;
  4492.  
  4493. while (filehostIdx--)
  4494. {
  4495. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4496. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4497. }
  4498.  
  4499. while (filehostCodedIdx--)
  4500. {
  4501. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4502. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4503. }
  4504.  
  4505. while (filehostObsoleteIdx--)
  4506. {
  4507. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4508. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4509. }
  4510.  
  4511. while (filehostHeadersOnlyIdx--)
  4512. {
  4513. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4514. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4515. }
  4516.  
  4517. totalourls = totalourls.replace(/\|$/g, "");
  4518. //TODO: further refactoring needed
  4519. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4520. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4521. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4522. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4523. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4524. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4525. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4526. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4527. if (filterId != null) //insert id restriction in the xpath
  4528. {
  4529. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4530. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4531. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4532. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4533. }
  4534. else
  4535. {
  4536. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4537. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4538. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4539. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4540. }
  4541. linkify(totalourls);
  4542. //LINKIFICATION END
  4543. //ENCRYPTED LINKS PROCESSING START
  4544. if (http_file_hosts_coded.length > 0)
  4545. {
  4546. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4547.  
  4548. // decrypt coded links (redirects, link protectors etc.)
  4549. if (linksCoded.snapshotLength > 0)
  4550. {
  4551. var link;
  4552. var reallinkreg;
  4553. var reallinkcorrection;
  4554.  
  4555. if (filterId == null)
  4556. {
  4557. cLinksTotal += linksCoded.snapshotLength;
  4558. }
  4559.  
  4560. var y = linksCoded.snapshotLength - 1;
  4561. do
  4562. {
  4563. // linksCoded.snapshotItem(y).id = 'processing_link';
  4564. link = linksCoded.snapshotItem(y);
  4565. filehostIdx = filehostCodedLen;
  4566. while (filehostIdx--)
  4567. {
  4568. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4569. {
  4570. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4571. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4572. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4573.  
  4574. decurl(link, reallinkreg, reallinkcorrection);
  4575. break;
  4576. }
  4577. }
  4578. }
  4579. while (y--);
  4580. }
  4581. }
  4582. //ENCRYPTED LINKS PROCESSING END
  4583.  
  4584. //STANDARD LINKCHECKING START
  4585. if (http_file_hosts.length > 0)
  4586. {
  4587. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4588.  
  4589. if (filterId == null)
  4590. {
  4591. cLinksTotal += lianks.snapshotLength;
  4592. }
  4593.  
  4594. if (lianks.snapshotLength > 0)
  4595. {
  4596. var link;
  4597.  
  4598. var URL = "";
  4599. var name = "";
  4600. var isAliveRegex = "";
  4601. var isDeadRegex = "";
  4602. var isUnavaRegex = "";
  4603. var ispremRegex = "";
  4604. var tryLoop = false;
  4605.  
  4606. var y = lianks.snapshotLength;
  4607.  
  4608. while (y--)
  4609. {
  4610. link = lianks.snapshotItem(y);
  4611.  
  4612. filehostIdx = filehostLen;
  4613. while (filehostIdx--)
  4614. {
  4615. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4616. {
  4617. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4618. isAliveRegex = http_file_hosts[filehostIdx][1];
  4619. isDeadRegex = http_file_hosts[filehostIdx][2];
  4620. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4621. ispremRegex = http_file_hosts[filehostIdx][6];
  4622. tryLoop = http_file_hosts[filehostIdx][5];
  4623.  
  4624. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4625.  
  4626. break;
  4627. }
  4628. }
  4629. }
  4630. }
  4631. }
  4632. //STANDARD LINKCHECKING END
  4633. //OBSOLETE FILE HOSTS PROCESSING START
  4634. if (filehostObsoleteLen > 0)
  4635. {
  4636. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4637.  
  4638. var obsoleteLink;
  4639.  
  4640. //check links
  4641. if (obsoletelinks.snapshotLength > 0)
  4642. {
  4643. var y = obsoletelinks.snapshotLength;
  4644.  
  4645. if (filterId == null)
  4646. {
  4647. cLinksTotal += y;
  4648. }
  4649.  
  4650. while (y--)
  4651. {
  4652. obsoleteLink = obsoletelinks.snapshotItem(y);
  4653.  
  4654. if (Display_tooltip_info)
  4655. {
  4656. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4657. }
  4658. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4659. }
  4660. }
  4661. }
  4662. //OBSOLETE FILE HOSTS PROCESSING END
  4663.  
  4664. //DIRECT LINKCHECKING START
  4665. if (http_file_hosts_headers_only.length > 0)
  4666. {
  4667. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4668.  
  4669. //check links
  4670. if (links.snapshotLength > 0)
  4671. {
  4672. var link;
  4673. var isAliveRegex;
  4674. var isDeadRegex;
  4675. var ispremRegex;
  4676.  
  4677. var y = links.snapshotLength;
  4678.  
  4679.  
  4680. if (filterId == null)
  4681. {
  4682. cLinksTotal += y;
  4683. }
  4684.  
  4685. while (y--)
  4686. {
  4687. // links.snapshotItem(y).id = 'processing_link';
  4688. link = links.snapshotItem(y);
  4689. filehostIdx = filehostHeadersOnlyLen;
  4690. while (filehostIdx--)
  4691. {
  4692. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4693. {
  4694. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4695. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4696. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4697. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4698.  
  4699. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4700.  
  4701. break;
  4702. }
  4703. }
  4704. }
  4705.  
  4706. }
  4707. }
  4708. //DIRECT LINKCHECKING END
  4709.  
  4710.  
  4711. //finds the real url on the page, replaces link.href with it and calls geturl
  4712. function decurl(link, reallinkreg, reallinkcorrection)
  4713. {
  4714.  
  4715. GM_xmlhttpRequest(
  4716. {
  4717. method: 'GET',
  4718. url: link.href,
  4719. headers: {
  4720. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4721. 'Accept': 'text/xml',
  4722. 'Referer': ""
  4723. },
  4724. onload: function (result)
  4725. {
  4726. // cLinksProcessed++;
  4727.  
  4728. var reallink = result.responseText.match(reallinkreg)[0];
  4729. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4730.  
  4731. link.href = reallink;
  4732.  
  4733. var i = http_file_hosts.length - 1;
  4734. do
  4735. {
  4736. if ((reallink.match(http_file_hosts[i][0])))
  4737. {
  4738. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4739. var isAliveRegex = http_file_hosts[i][1];
  4740. var isDeadRegex = http_file_hosts[i][2];
  4741. var isUnavaRegex = http_file_hosts[i][3];
  4742. var ispremRegex = http_file_hosts[i][4];
  4743.  
  4744. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4745.  
  4746. break;
  4747. }
  4748. }
  4749. while (i--);
  4750. }
  4751. });
  4752. }
  4753.  
  4754. function randUA()
  4755. {
  4756. //TODO
  4757. }
  4758. //Processes link
  4759. //
  4760. // [string] link link URL
  4761. // [string] isAliveRegex alive link regex
  4762. // [string] isDeadRegex dead link regex
  4763. // [string] isUnavaRegex unavailable link regex
  4764. // [string] ispremRegex premium link regex
  4765. // [boolean] tryLoop repeats request until succeeded
  4766. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4767. {
  4768. GM_xmlhttpRequest(
  4769. {
  4770. method: 'GET',
  4771. url: link.href,
  4772. headers: {
  4773. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4774. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4775. 'Referer': ""
  4776. },
  4777. onload: function (result)
  4778. {
  4779. var res = result.responseText;
  4780. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4781. {
  4782. displayTheCheckedLink(link, 'alive_link');
  4783. return;
  4784. }
  4785.  
  4786. if (res.match(isAliveRegex))
  4787. {
  4788. displayTheCheckedLink(link, 'alive_link');
  4789. return;
  4790. }
  4791.  
  4792. if (res.match(isDeadRegex))
  4793. {
  4794. displayTheCheckedLink(link, 'adead_link');
  4795. return;
  4796. }
  4797.  
  4798. if (isUnavaRegex && res.match(isUnavaRegex))
  4799. {
  4800. displayTheCheckedLink(link, 'unava_link');
  4801. return;
  4802. }
  4803. if (res.match(ispremRegex))
  4804. {
  4805. displayTheCheckedLink(link, 'prem_link');
  4806. return;
  4807. }
  4808.  
  4809. var resStatus = result.status;
  4810.  
  4811. if (resStatus == 404)
  4812. {
  4813. displayTheCheckedLink(link, 'adead_link');
  4814. }
  4815. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4816. {
  4817. if (tryLoop)
  4818. {
  4819. //wait 1-5 seconds and repeat the request
  4820. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4821. }
  4822. else
  4823. {
  4824. displayTheCheckedLink(link, 'unava_link');
  4825. }
  4826.  
  4827. return;
  4828. }
  4829. },
  4830. onerror: function ()
  4831. {
  4832. displayTheCheckedLink(link, 'unava_link');
  4833. }
  4834. });
  4835. }
  4836.  
  4837. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4838. {
  4839. GM_xmlhttpRequest(
  4840. {
  4841. method: 'HEAD',
  4842. url: link.href,
  4843. headers: {
  4844. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4845. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4846. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4847. 'Referer': ""
  4848. },
  4849. onload: function (result)
  4850. {
  4851. var resStatus = result.status;
  4852. var resHeaders = "";
  4853. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4854. {
  4855. displayTheCheckedLink(link, 'adead_link');
  4856. return;
  4857. }
  4858.  
  4859. resHeaders = result.responseHeaders;
  4860.  
  4861. if (resHeaders.match(isDeadRegex))
  4862. {
  4863. displayTheCheckedLink(link, 'adead_link');
  4864. return;
  4865. }
  4866.  
  4867. if (resHeaders.match(isAliveRegex))
  4868. {
  4869. displayTheCheckedLink(link, 'alive_link');
  4870. return;
  4871. }
  4872. if (resHeaders.match(ispremRegex))
  4873. {
  4874. displayTheCheckedLink(link, 'prem_link');
  4875. return;
  4876. }
  4877. },
  4878. onerror: function ()
  4879. {
  4880. displayTheCheckedLink(link, 'unava_link');
  4881. }
  4882. });
  4883. }
  4884.  
  4885. //Delinkfifies the <a> element object
  4886. function delinkifyLink(link)
  4887. {
  4888. var spanElm = document.createElement("span");
  4889. spanElm.className = link.className;
  4890. spanElm.innerHTML = link.innerHTML;
  4891.  
  4892. if (Display_tooltip_info)
  4893. {
  4894. spanElm.href = link.href;
  4895. spanElm.warlc_error = link.warlc_error;
  4896. switch (link.className){
  4897. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4898. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4899. case "unava_link": //reserved
  4900. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4901. default:
  4902. }
  4903. }
  4904. link.parentNode.replaceChild(spanElm, link);
  4905. }
  4906.  
  4907. //Assigns result status to the <a> element object and calls delinkifying eventually
  4908. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4909. function displayTheCheckedLink(link, resultStatus)
  4910. {
  4911. link.className = resultStatus;
  4912. link.href = Ref_anonymize_service + link.href;
  4913. if (Display_tooltip_info)
  4914. {
  4915. switch (resultStatus){
  4916. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4917. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4918. case "unava_link": //reserved
  4919. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4920. default:
  4921. }
  4922. }
  4923. if (doNotLinkify)
  4924. {
  4925. delinkifyLink(link);
  4926. }
  4927. cLinksProcessed++;
  4928.  
  4929. if (resultStatus == "alive_link")
  4930. {
  4931. cLinksAlive++;
  4932. return;
  4933. }
  4934.  
  4935. if (resultStatus == "adead_link")
  4936. {
  4937. cLinksDead++;
  4938. return;
  4939. }
  4940.  
  4941. if (resultStatus == "unava_link")
  4942. {
  4943. cLinksUnava++;
  4944. }
  4945. if (resultStatus == "prem_link")
  4946. {
  4947. cLinksprem++;
  4948. return;
  4949. }
  4950. }
  4951.  
  4952.  
  4953. function initFileHosts()
  4954. {
  4955.  
  4956. function addObsoleteHost(linkRegex, xpathEx)
  4957. {
  4958. var host = new Array(2);
  4959. host[0] = linkRegex;
  4960. host[1] = xpathEx;
  4961. http_file_hosts_obsolete.push(host);
  4962. }
  4963.  
  4964. //obsolete file hosts init start
  4965. if (Obsolete_file_hosts)
  4966. {
  4967. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4968. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4969. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4970. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4971. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4972. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4973. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4974. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4975. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4976. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4977. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4978. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4979. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4980. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4981. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4982. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4983. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4984. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4985. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4986. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4987. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4988. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4989. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4990. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4991. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4992. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4993. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4994. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4995. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4996. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4997. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4998. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4999. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5000. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5001. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5002. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5003. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5004. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5005. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5006. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5007. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5008. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5009. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5010. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5011. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5012. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5013. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5014. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5015. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5016. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5017. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5018. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5019. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5020. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5021. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5022. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5023. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5024. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5025. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5026. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5027. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5028. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5029. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5030. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5031. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5032. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5033. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5034. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5035. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5036. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5037. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5038. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5039. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5040. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5041. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5042. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5043. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5044. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5045. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5046. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5047. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5048. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5049. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5050. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5051. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5052. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5053. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5054. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5055. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5056. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5057. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5058. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5059. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5060. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5061. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5062. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5063. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5064. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5065. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5066. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5067. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5068. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5069. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5070. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5071. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5072. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5073. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5074. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5075. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5076. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5077. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5078. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5079. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5080. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5081. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5082. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5083. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5084. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5085. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5086. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5087. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5088. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5089. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5090. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5091. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5092. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5093. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5094. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5095. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5096. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5097. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5098. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5099. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5100. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5101. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5102. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5103. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5104. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5105. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5106. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5107. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5108. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5109. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5110. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5111. 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')]");
  5112. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5113. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5114. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5115. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5116. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5117. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5118. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5119. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5120. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5121. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5122. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5123. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5124. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5125. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5126. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5127. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5128. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5129. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5130. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5131. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5132. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5133. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5134. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5135. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5136. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5137. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5138. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5139. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5140. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5141. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5142. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5143. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5144. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5145. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5146. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5147. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5148. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5149. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5150. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5151. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5152. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5153. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5154. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5155. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5156. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5157. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5158. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5159. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5160. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5161. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5162. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5163. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5164. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5165. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5166. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5167. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5168. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5169. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5170. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5171. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5172. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5173. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5174. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5175. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5176. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5177. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5178. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5179. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5180. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5181. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5182. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5183. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5184. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5185. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5186. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5187. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5188. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5189. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5190. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5191. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5192. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5193. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5194. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5195. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5196. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5197. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5198. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5199. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5200. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5201. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5202. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5203. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5204. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5205. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5206. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5207. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5208. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5209. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5210. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5211. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5212. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5213. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5214. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5215. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5216. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5217. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5218. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5219. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5220. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5221. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5222. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5223. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5224. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5225. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5226. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5227. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5228. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5229. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5230. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5231. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5232. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5233. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5234. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5235. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5236. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5237. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5238. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5239. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5240. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5241. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5242. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5243. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5244. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5245. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5246. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5247. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5248. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5249. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5250. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5251. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5252. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5253. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5254. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5255. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5256. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5257. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5258. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5259. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5260. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5261. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5262. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5263. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5264. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5265. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5266. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5267. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5268. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5269. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5270. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5271. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5272. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5273. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5274. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5275. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5276. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5277. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5278. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5279. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5280. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5281. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5282. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5283. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5284. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5285. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5286. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5287. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5288. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5289. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5290. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5291. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5292. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5293. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5294. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5295. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5296. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5297. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5298. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5299. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5300. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5301. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5302. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5303. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5304. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5305. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5306. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5307. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5308. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5309. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5310. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5311. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5312. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5313. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5314. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5315. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5316. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5317. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5318. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5319. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5320. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5321. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5322. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5323. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5324. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5325. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5326. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5327. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5328. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5329. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5330. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5331. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5332. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5333. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5334. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5335. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5336. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5337. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5338. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5339. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5340. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5341. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5342. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5343. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5344. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5345. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5346. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5347. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5348. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5349. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5350. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5351. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5352. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5353. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5354. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5355. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5356. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5357. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5358. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5359. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5360. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5361. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5362. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5363. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5364. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5365. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5366. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5367. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5368. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5369. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5370. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5371. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5372. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5373. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5374. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5375. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5376. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5377. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5378. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5379. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5380. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5381. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5382. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5383. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5384. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5385. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5386. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5387. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5388. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5389. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5390. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5391. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5392. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5393. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5394. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5395. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5396. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5397. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5398. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5399. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5400. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5401. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5402. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5403. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5404. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5405. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5406. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5407. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5408. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5409. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5410. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5411. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5412. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5413. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5414. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5415. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5416. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5417. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5418. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5419. // obsolete start
  5420. }
  5421. //obsolete file hosts init end
  5422.  
  5423. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5424. {
  5425. var host = new Array(7);
  5426. host[0] = linkRegex;
  5427. host[1] = isAliveRegex;
  5428. host[2] = isDeadRegex;
  5429. host[3] = isUnavaRegex;
  5430. host[6] = ispremRegex;
  5431. host[4] = xpathEx;
  5432. tryLoop ? host[5] = true : host[5] = false;
  5433. http_file_hosts.push(host);
  5434. }
  5435. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5436. {
  5437. addFileHost(
  5438. "megafileupload\.com\/..\/file\/",
  5439. 'downloadbtn',
  5440. 'is not found',
  5441. 'optional--',
  5442. "//a[contains(@href,'megafileupload.com')]");
  5443. }
  5444. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5445. {
  5446. addFileHost(
  5447. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5448. 'download\\.gif"',
  5449. 'p_point">',
  5450. 'optional--',
  5451. "//a[contains(@href,'demo.ovh.eu')]");
  5452. }
  5453. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5454. {
  5455. addFileHost(
  5456. "xkeepfile\.com\/\\w+",
  5457. 'File has been found|Click here to download',
  5458. 'File cannot be found|class="error">',
  5459. 'optional--',
  5460. //'optional--',
  5461. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5462. }
  5463. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5464. {
  5465. addFileHost(
  5466. "safelinking\\.net\/p\/\\w+",
  5467. 'color:green;"',
  5468. 'color:(?:red|orange);"',
  5469. 'color:(?:grey|brown);"',
  5470. "//a[contains(@href,'safelinking.net/p/')]",
  5471. true);
  5472. }
  5473. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5474. {
  5475. addFileHost(
  5476. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5477. 'name="recaptcha_response',
  5478. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5479. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5480. "//a[contains(@href,'ultramegabit.com/file')]",
  5481. true);
  5482. } */
  5483. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5484. {
  5485. addFileHost(
  5486. "fastshare\\.cz\/\\d+\/\\w*",
  5487. 'dwntable">',
  5488. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5489. 'optional--',
  5490. "//a[contains(@href,'fastshare.cz')]");
  5491. }
  5492. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5493. {
  5494. addFileHost(
  5495. "[fF]ast[sS]hare\\.org\/download",
  5496. 'Download ">',
  5497. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5498. 'optional--',
  5499. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5500. }
  5501. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5502. {
  5503. addFileHost(
  5504. "partage-facile\.com\/\\w+",
  5505. 'class="title"><strong>|colspan="2"',
  5506. 'Page introuvable|class="alert-message',
  5507. 'optional--',
  5508. "//a[contains(@href,'partage-facile.com')]");
  5509. }
  5510. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5511. {
  5512. addFileHost(
  5513. "rapidgator\\.net\/file\/\\w+",
  5514. '/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',
  5515. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5516. 'optional--',
  5517. "//a[contains(@href,'rapidgator.net/file')]",
  5518. true
  5519. );
  5520. }
  5521. if (GM_getValue("Check_relink_dot_us_links", false))
  5522. {
  5523. addFileHost(
  5524. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5525. 'online_detail\\.png" alt="Status',
  5526. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5527. 'unknown_detail\\.png" alt="Status',
  5528. "//a[contains(@href,'relink.us/')]"
  5529. );
  5530. }
  5531. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5532. {
  5533. addFileHost(
  5534. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5535. 'div id="dl"',
  5536. 'Sie haben den Link falsch',
  5537. 'optional--',
  5538. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5539. );
  5540. }
  5541. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5542. {
  5543. addFileHost(
  5544. "flyfiles\\.net\/\\w+",
  5545. 'download_button"|"Download file"',
  5546. 'File not found!|Файл не найден',
  5547. 'optional--',
  5548. "//a[contains(@href,'flyfiles.net/')]"
  5549. );
  5550. }
  5551. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5552. {
  5553. addFileHost(
  5554. "wikiupload\\.com\/\\w+",
  5555. 'download-button">',
  5556. 'Sorry, File not found',
  5557. 'optional--',
  5558. "//a[contains(@href,'wikiupload.com/')]"
  5559. );
  5560. }
  5561. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5562. {
  5563. addFileHost(
  5564. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5565. 'file\\.php">|Pobierz Plik',
  5566. 'Podany plik nie zosta',
  5567. 'optional--',
  5568. "//a[contains(@href,'hostuje.net/file')]"
  5569. );
  5570. }
  5571. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5572. {
  5573. addFileHost(
  5574. "gettyfile\\.ru\/\\d+",
  5575. 'download\\.gif border',
  5576. '<center><font size="3">',
  5577. 'optional--',
  5578. "//a[contains(@href,'gettyfile.ru/')]"
  5579. );
  5580. }
  5581. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5582. {
  5583. addFileHost(
  5584. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5585. 'download\\-file">',
  5586. 'col-1">\\s*<h1>',
  5587. 'optional--',
  5588. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5589. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5590. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5591. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5592. );
  5593. }
  5594. if (GM_getValue("Check_data_dot_hu_links", false))
  5595. {
  5596. addFileHost(
  5597. "data\\.hu\/get\/\\d+\/",
  5598. 'download_box_button',
  5599. 'missing\\.php',
  5600. 'optional--',
  5601. "//a[contains(@href,'data.hu/get')]",
  5602. true
  5603. );
  5604. }
  5605. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5606. {
  5607. addFileHost(
  5608. "filesmelt\\.com\/dl\/\\w+",
  5609. '(Your download is ready|Download File)',
  5610. 'Sorry, but your',
  5611. 'optional--',
  5612. "//a[contains(@href,'filesmelt.com/dl')]"
  5613. );
  5614. }
  5615. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5616. {
  5617. addFileHost(
  5618. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5619. 'premiumBtn"',
  5620. 'errorMessage"',
  5621. 'optional--',
  5622. "//a[contains(@href,'indowebster.com/download')]"
  5623. );
  5624. }
  5625. if (GM_getValue("Check_superload_dot_cz_links", false))
  5626. {
  5627. addFileHost(
  5628. "superload\\.cz\/dl\/\\w+",
  5629. 'icon-download">',
  5630. 'soubor nebyl nalezen',
  5631. 'optional--',
  5632. "//a[contains(@href,'superload.cz/dl')]"
  5633. );
  5634. }
  5635. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5636. {
  5637. addFileHost(
  5638. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5639. 'op" value="download',
  5640. 'class="err">|width:500px;text-align:left;">',
  5641. 'optional--',
  5642. "//a[contains(@href,'hulkfile.')]"
  5643. );
  5644. }
  5645. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5646. {
  5647. addFileHost(
  5648. "easybytez\\.com\/\\w+",
  5649. 'op" value="download',
  5650. 'stop_error\\.gif',
  5651. 'optional--',
  5652. "//a[contains(@href,'easybytez.com/')]"
  5653. );
  5654. }
  5655. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5656. {
  5657. addFileHost(
  5658. "filestore\\.com\\.ua\/\\?d=\\w+",
  5659. 'tdrow1>',
  5660. 'class=warn',
  5661. 'optional--',
  5662. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5663. );
  5664. }
  5665. if (GM_getValue("Check_netkups_dot_com_links", false))
  5666. {
  5667. addFileHost(
  5668. "netkups\\.com\/\\?d=\\w+",
  5669. 'submit">Continue',
  5670. 'page">File not found|deleted due to inactivity',
  5671. 'optional--',
  5672. "//a[contains(@href,'netkups.com/?d=')]"
  5673. );
  5674. }
  5675. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5676. {
  5677. addFileHost(
  5678. "openfile\\.ru\/(?:video\/|)\\d+",
  5679. 'videobox_left">',
  5680. 'blog_title">|not found on this server',
  5681. 'optional--',
  5682. "//a[contains(@href,'openfile.ru/')]"
  5683. );
  5684. }
  5685. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5686. {
  5687. addFileHost(
  5688. "extmatrix\\.com\/files\/\\w+",
  5689. 'div class="success"',
  5690. 'div class="error"',
  5691. 'optional--',
  5692. "//a[contains(@href,'extmatrix.com/files')]"
  5693. );
  5694. }
  5695. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5696. {
  5697. addFileHost(
  5698. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5699. 'content_lnkDownload',
  5700. 'error\\.aspx\\?',
  5701. 'optional--',
  5702. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5703. );
  5704. }
  5705. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5706. {
  5707. addFileHost(
  5708. "sockshare\\.com\/file\/\\w+",
  5709. 'choose_speed">',
  5710. 'message t_0\'>',
  5711. 'optional--',
  5712. "//a[contains(@href,'sockshare.com/file')]"
  5713. );
  5714. }
  5715. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5716. {
  5717. addFileHost(
  5718. "yourfilestore\\.com\/download\/\\d+\/",
  5719. 'download_data">',
  5720. 'may have been deleted|<h1>Sorry!<\/h1>',
  5721. 'optional--',
  5722. "//a[contains(@href,'yourfilestore.com/download')]"
  5723. );
  5724. }
  5725. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5726. {
  5727. addFileHost(
  5728. "nekaka\\.com\/d\/[\\w-]+",
  5729. 'downloadForm">',
  5730. 'invalid file link',
  5731. 'optional--',
  5732. "//a[contains(@href,'nekaka.com/d')]"
  5733. );
  5734. }
  5735. if (GM_getValue("Check_filebig_dot_net_links", false))
  5736. {
  5737. addFileHost(
  5738. "filebig\\.net\/files\/\\w+",
  5739. 'downloadFile">',
  5740. '<p>File not found<\/p>',
  5741. 'optional--',
  5742. "//a[contains(@href,'filebig.net/files')]"
  5743. );
  5744. }
  5745. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5746. {
  5747. addFileHost(
  5748. "files\\.filefront\\.com\/\/;\\d+;;",
  5749. 'downloadLink">',
  5750. 'File not found, you',
  5751. 'optional--',
  5752. "//a[contains(@href,'files.filefront.com')]"
  5753. );
  5754.  
  5755. addFileHost(
  5756. "gamefront\\.com\/files\/\\d+",
  5757. 'downloadLink">',
  5758. 'File not found, you',
  5759. 'optional--',
  5760. "//a[contains(@href,'gamefront.com/files')]"
  5761. );
  5762. }
  5763. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5764. {
  5765. addFileHost(
  5766. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5767. 'dnlLnk"',
  5768. 'already been deleted',
  5769. 'optional--',
  5770. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5771. );
  5772. }
  5773. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5774. {
  5775. addFileHost(
  5776. "hellupload\\.com\/\\w+",
  5777. '<h3>Download File<br',
  5778. 'id="podstrona">|AVOID_IE_BUG',
  5779. 'optional--',
  5780. "//a[contains(@href,'hellupload.com/')]"
  5781. );
  5782. }
  5783. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5784. {
  5785. addFileHost(
  5786. "free\\-uploading\\.com\/\\w+",
  5787. 'op" value="download',
  5788. 'class="err">|width:500px;text-align:left;">',
  5789. 'optional--',
  5790. "//a[contains(@href,'free-uploading.com/')]"
  5791. );
  5792. }
  5793. if (GM_getValue("Check_fileape_dot_com_links", false))
  5794. {
  5795. addFileHost(
  5796. "fileape\\.com\/download\\-",
  5797. 'button_dl\\.png',
  5798. 'does not exist\\.',
  5799. 'optional--',
  5800. "//a[contains(@href,'fileape.com/')]"
  5801. );
  5802. }
  5803. if (GM_getValue("Check_uppit_dot_com_links", false))
  5804. {
  5805. addFileHost(
  5806. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5807. 'op" value="download',
  5808. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5809. 'optional--',
  5810. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5811. true
  5812. );
  5813. }
  5814. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5815. {
  5816. addFileHost(
  5817. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5818. 'op" value="download',
  5819. '>File Not Found<',
  5820. 'optional--',
  5821. "//a[contains(@href,'nosupload.com')]",
  5822. true
  5823. );
  5824. }
  5825. if (GM_getValue("Check_filesin_dot_com_links", false))
  5826. {
  5827. addFileHost(
  5828. "filesin\\.com\/\\w+\/download\\.html",
  5829. 'download_area">',
  5830. 'error_note">',
  5831. 'optional--',
  5832. "//a[contains(@href,'filesin.com/')]",
  5833. true
  5834. );
  5835. }
  5836. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5837. {
  5838. addFileHost(
  5839. "nowdownload\\.eu\/dl\/\\w+",
  5840. 'alert-success"',
  5841. 'This file does not exist!',
  5842. 'The file is being transfered',
  5843. "//a[contains(@href,'nowdownload.eu/dl')]"
  5844. );
  5845. }
  5846. if (GM_getValue("Check_axifile_dot_com_links", false))
  5847. {
  5848. addFileHost(
  5849. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5850. 'Dbutton_big"',
  5851. 'download\\-error\\.php',
  5852. 'optional--',
  5853. "//a[contains(@href,'axifile.com/')]"
  5854. );
  5855. }
  5856. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5857. {
  5858. addFileHost(
  5859. "hulkshare\.com\/\\w+",
  5860. 'download\.sam\.png|This is a private file|id="filename',
  5861. 'File does not exist|fingerprint protected copyright',
  5862. 'optional--',
  5863. "//a[contains(@href,'hulkshare.com')]"
  5864. );
  5865. }
  5866. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5867. {
  5868. addFileHost(
  5869. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5870. 'col-1">\\s*<s',
  5871. 'col-1">\\s*<h',
  5872. 'optional--',
  5873. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5874. );
  5875. }
  5876. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5877. {
  5878. addFileHost(
  5879. "hitfile\\.net\/download\/folder\/\\d+",
  5880. 'content">\\s*<s',
  5881. 'content">\\s*<h',
  5882. 'optional--',
  5883. "//a[contains(@href,'hitfile.net/download/folder')]"
  5884. );
  5885. }
  5886. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5887. {
  5888. addFileHost(
  5889. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5890. 'images\/online\\.gif',
  5891. 'InPage_Error"',
  5892. 'optional--',
  5893. "//a[contains(@href,'netload.in/folder.php')]"
  5894. );
  5895. }
  5896. if (GM_getValue("Check_movshare_dot_net_links", false))
  5897. {
  5898. addFileHost(
  5899. "movshare\\.net\\/video\\/\\w+",
  5900. 'optional--"',
  5901. 'no longer exists',
  5902. 'optional--',
  5903. "//a[contains(@href,'movshare.net/video')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_plunder_dot_com_links", false))
  5907. {
  5908. addFileHost(
  5909. "plunder\.com\/\\w+",
  5910. 'x\/download\\.gif',
  5911. '404 - File or directory not found.',
  5912. 'optional--',
  5913. "//a[contains(@href,'plunder.com')]"
  5914. );
  5915. }
  5916. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5917. {
  5918. addFileHost(
  5919. "mafiastorage\\.com\/\\w+",
  5920. 'op" value="download',
  5921. 'class="err">|style="width:500px;text-align:left;"',
  5922. 'optional--',
  5923. "//a[contains(@href,'mafiastorage.com/')]"
  5924. );
  5925. }
  5926. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5927. {
  5928. addFileHost(
  5929. "uploadspace\.pl\/plik\\w+",
  5930. 'Downloading .+? \\|',
  5931. 'Downloading a file',
  5932. 'optional--',
  5933. "//a[contains(@href,'uploadspace.pl/plik')]"
  5934. );
  5935. }
  5936. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5937. {
  5938. addFileHost(
  5939. "uploadingit\\.com\/file\/\\w+",
  5940. 'downloadTitle">',
  5941. 'deleteContent">',
  5942. 'optional--',
  5943. "//a[contains(@href,'uploadingit.com/file')]"
  5944. );
  5945. }
  5946. if (GM_getValue("Check_rghost_dot_net_links", false))
  5947. {
  5948. addFileHost(
  5949. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5950. 'download_link|btn large download"',
  5951. 'file is restricted|File is deleted|503 Service Unavailable',
  5952. 'File was deleted',
  5953. "//a[contains(@href,'rghost.')]"
  5954. );
  5955. }
  5956. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5957. {
  5958. addFileHost(
  5959. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5960. '">Staženo:\\s*<\/span>',
  5961. 'Soubor, který hledáte nenalezen',
  5962. 'optional--',
  5963. "//a[contains(@href,'xdisk.cz/')]"
  5964. );
  5965. }
  5966. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5967. {
  5968. addFileHost(
  5969. "expressleech\.com\/\\w+",
  5970. 'src="/img/Download.gif"|var _gaq =',
  5971. 'var rr =|403 Forbidden',
  5972. 'optional--',
  5973. "//a[contains(@href,'expressleech.com')]");
  5974. }
  5975. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5976. {
  5977. addFileHost(
  5978. "2downloadz\.com\/\\w+",
  5979. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5980. 'color="#006DCC|File error',
  5981. 'optional--',
  5982. "//a[contains(@href,'2downloadz.com')]");
  5983. }
  5984. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5985. {
  5986. addFileHost(
  5987. "mightyupload\.com\/\\w+",
  5988. 'background:#ccc;text-align|CONTENT="Download File"',
  5989. 'style="background:#eee|var rr =|File Not Found',
  5990. 'optional--',
  5991. "//a[contains(@href,'mightyupload.com')]");
  5992. }
  5993. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5994. {
  5995. addFileHost(
  5996. "uncapped-downloads\.com\/\\w+",
  5997. 'btn_download',
  5998. 'File Not Found',
  5999. 'optional--',
  6000. "//a[contains(@href,'uncapped-downloads.com')]");
  6001. }
  6002. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6003. {
  6004. addFileHost(
  6005. "k2s\.cc\/file\/\\w+",
  6006. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6007. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6008. 'please try later',
  6009. //'optional--',
  6010. "//a[contains(@href,'k2s.cc')]");
  6011. }
  6012. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6013. {
  6014. addFileHost(
  6015. "keep2share\.cc\/file\/\\w+",
  6016. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6017. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6018. 'please try later',
  6019. //'premium only',
  6020. "//a[contains(@href,'keep2share.cc')]");
  6021. }
  6022. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6023. {
  6024. addFileHost(
  6025. "keep2s\.cc\/file\/\\w+",
  6026. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6027. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6028. 'please try later',
  6029. //'optional--',
  6030. "//a[contains(@href,'keep2s.cc')]");
  6031. }
  6032. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6033. {
  6034. addFileHost(
  6035. "keep2share\.com\/file\/\\w+",
  6036. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6037. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6038. 'please try later',
  6039. //'optional--',
  6040. "//a[contains(@href,'keep2share.com')]");
  6041. }
  6042. if (GM_getValue("Check_anysend_dot_com_links", false))
  6043. {
  6044. addFileHost(
  6045. "anysend\.com\/\\w+",
  6046. 'var openCalled=false;|content="noindex"',
  6047. '_trackPageview',
  6048. 'optional--',
  6049. "//a[contains(@href,'anysend.com')]");
  6050. }
  6051. if (GM_getValue("Check_datafile_dot_com_links", false))
  6052. {
  6053. addFileHost(
  6054. "datafile\.com\/\\w+",
  6055. 'var captchaPanel',
  6056. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6057. 'You are downloading another file at this moment|You exceeded your free',
  6058. //'optional--',
  6059. "//a[contains(@href,'datafile.com')]",
  6060. true);
  6061. }
  6062. if (GM_getValue("Check_upstore_dot_net_links", false))
  6063. {
  6064. addFileHost(
  6065. "upstore\.net\/\\w+",
  6066. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6067. 'File not found|onload="redirect|class="error">',
  6068. 'optional--',
  6069. "//a[contains(@href,'upstore.net')]");
  6070. }
  6071. if (GM_getValue("Check_upsto_dot_re_links", false))
  6072. {
  6073. addFileHost(
  6074. "upsto\.re\/\\w+",
  6075. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6076. 'File not found|onload="redirect|class="error">',
  6077. 'optional--',
  6078. "//a[contains(@href,'upsto.re')]");
  6079. }
  6080. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6081. {
  6082. addFileHost(
  6083. "speedy\.sh\/\\w+",
  6084. 'bgcolor=#eeeeee|class="addthis',
  6085. 'File not found|downloadfilenamenotfound>',
  6086. 'optional--',
  6087. "//a[contains(@href,'speedy.sh')]");
  6088. }
  6089. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6090. {
  6091. addFileHost(
  6092. "sanshare\.com\/\\w+",
  6093. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6094. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6095. 'optional--',
  6096. "//a[contains(@href,'sanshare.com')]");
  6097. }
  6098. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6099. {
  6100. addFileHost(
  6101. "kingfiles\.net\/\\w+",
  6102. 'img/spriteBanner.png|If you are the owner of this file',
  6103. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6104. 'optional--',
  6105. "//a[contains(@href,'kingfiles.net')]");
  6106. }
  6107. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6108. {
  6109. addFileHost(
  6110. "uploadhero\\.co\/dl\/\\w+",
  6111. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6112. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6113. 'optional--',
  6114. "//a[contains(@href,'uploadhero.co/dl')]"
  6115. );
  6116. }
  6117. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6118. {
  6119. addFileHost(
  6120. "secureupload\\.eu\/\\w+",
  6121. 'Downloading',
  6122. 'cannot be found|File Not Found|could not be found',
  6123. 'optional--',
  6124. "//a[contains(@href,'secureupload.eu')]"
  6125. );
  6126. }
  6127. if (GM_getValue("Check_ge_dot_tt_links", false))
  6128. {
  6129. addFileHost(
  6130. "ge\.tt\/\\w+",
  6131. 'downloads pic',
  6132. 'is NOT the same as',
  6133. 'optional--',
  6134. "//a[contains(@href,'ge.tt')]");
  6135. }
  6136. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6137. {
  6138. addFileHost(
  6139. "filefactory\.com\/\\w+",
  6140. 'div id="file_holder"|download.css',
  6141. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6142. 'Server Maintenance|temporarily overloaded',
  6143. //'optional--',
  6144. "//a[contains(@href,'filefactory.com')]");
  6145. }
  6146. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6147. {
  6148. addFileHost(
  6149. "filesflash\.net\/\\w+",
  6150. 'align:right">Filename:',
  6151. 'class="msg">',
  6152. 'optional--',
  6153. "//a[contains(@href,'filesflash.net')]");
  6154. }
  6155. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6156. {
  6157. addFileHost(
  6158. "rapidgator\\.net\/folder\/\\w+",
  6159. 'href="/folder/',
  6160. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6161. 'optional--',
  6162. "//a[contains(@href,'rapidgator.net/folder')]",
  6163. true
  6164. );
  6165. }
  6166. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6167. {
  6168. addFileHost(
  6169. "salefiles\.com\/\\w+",
  6170. '<Title>Download|CONTENT="Download',
  6171. 'font:15px Arial|background:#eee;',
  6172. 'optional--',
  6173. "//a[contains(@href,'salefiles.com')]");
  6174. }
  6175. if (GM_getValue("Check_megairon_dot_net_links", false))
  6176. {
  6177. addFileHost(
  6178. "megairon\.net\/\\w+",
  6179. 'border: 5px #ffeb90 solid;',
  6180. 'CONTENT="Download File ">|var rr =',
  6181. 'optional--',
  6182. "//a[contains(@href,'megairon.net')]");
  6183. }
  6184. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6185. {
  6186. addFileHost(
  6187. "datoid\.cz\/\\w+",
  6188. 'btn-download|class="icon-download-large"',
  6189. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6190. 'optional--',
  6191. "//a[contains(@href,'datoid.cz')]");
  6192. }
  6193. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6194. {
  6195. addFileHost(
  6196. "stiahni\.si\/\\w+",
  6197. 'report_icon.png"|slow-download-button',
  6198. 'none.png|deleted|<h2>Error 500</h2>',
  6199. 'optional--',
  6200. "//a[contains(@href,'stiahni.si')]");
  6201. }
  6202. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6203. {
  6204. addFileHost(
  6205. "cloudstor\.es\/\\w+",
  6206. '"btn_download"',
  6207. '404: Page Not Found',
  6208. 'optional--',
  6209. "//a[contains(@href,'cloudstor.es')]");
  6210. }
  6211. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6212. {
  6213. addFileHost(
  6214. "streamfile\.com\/\\w+",
  6215. 'class="btn',
  6216. 'class="green-btn',
  6217. 'optional--',
  6218. "//a[contains(@href,'streamfile.com')]");
  6219. }
  6220. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6221. {
  6222. addFileHost(
  6223. "eyesfile\.ca\/\\w+",
  6224. 'value="Get Link',
  6225. 'var rr =',
  6226. 'optional--',
  6227. "//a[contains(@href,'eyesfile.ca')]");
  6228. }
  6229. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6230. {
  6231. addFileHost(
  6232. "filemoney\.com\/\\w+",
  6233. 'og:title',
  6234. '404 Not Found|<Title>FileMoney',
  6235. 'optional--',
  6236. "//a[contains(@href,'filemoney.com')]");
  6237. }
  6238. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6239. {
  6240. addFileHost(
  6241. "uploadboy\.com\/\\w+",
  6242. 'width="740">|method_free',
  6243. 'var rr =|background:#ffffff|not be found|file was removed',
  6244. 'optional--',
  6245. "//a[contains(@href,'uploadboy.com')]");
  6246. }
  6247. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6248. {
  6249. addFileHost(
  6250. "speedshare\.eu\/\\w+",
  6251. 'favicon.png|color:#3d87c0|cross.png"',
  6252. 'var rr =|File Not Found|style="background:#eee',
  6253. 'optional--',
  6254. "//a[contains(@href,'speedshare.eu')]");
  6255. }
  6256. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6257. {
  6258. addFileHost(
  6259. "unlimitzone\.com\/\\w+",
  6260. 'content="1" name="',
  6261. 'var rr =|File Not Found',
  6262. 'optional--',
  6263. "//a[contains(@href,'unlimitzone.com')]");
  6264. }
  6265. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6266. {
  6267. addFileHost(
  6268. "rioupload\.com\/\\w+",
  6269. 'sell.jpg',
  6270. 'var rr =',
  6271. 'optional--',
  6272. "//a[contains(@href,'rioupload.com')]");
  6273. }
  6274. if (GM_getValue("Check_rg_dot_to_links", false))
  6275. {
  6276. addFileHost(
  6277. "rg\.to\/\\w+",
  6278. '/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',
  6279. 'Error 404|File not found|Select your plan',
  6280. 'optional--',
  6281. //'optional--',
  6282. "//a[contains(@href,'rg.to')]");
  6283. }
  6284. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6285. {
  6286. addFileHost(
  6287. "jumbofiles\.org\/\\w+",
  6288. 'H71C5.png|class="downloadtitle">',
  6289. 'var swfu|ViewSourceBIN.png',
  6290. 'optional--',
  6291. "//a[contains(@href,'jumbofiles.org')]");
  6292. }
  6293. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6294. {
  6295. addFileHost(
  6296. "fshare\\.vn\/file\/\\w+",
  6297. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6298. 'không tồn tại|class="color_red m_t_50"',
  6299. 'optional--',
  6300. "//a[contains(@href,'fshare.vn/file')]",
  6301. true
  6302. );
  6303. }
  6304. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6305. {
  6306. addFileHost(
  6307. "spaceforfiles\.com\/\\w+",
  6308. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6309. 'var rr =|AVOID_IE_BUG',
  6310. 'optional--',
  6311. "//a[contains(@href,'spaceforfiles.com')]");
  6312. }
  6313. if (GM_getValue("Check_google_dot_com_links", false))
  6314. {
  6315. addFileHost(
  6316. "google\\.com\/file\/\\w+",
  6317. 'content="!">|color:#2d2d2d',
  6318. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6319. 'optional--',
  6320. "//a[contains(@href,'google.com/file')]",
  6321. true
  6322. );
  6323. }
  6324. if (GM_getValue("Check_google_dot_com_links", false))
  6325. {
  6326. addFileHost(
  6327. "docs.google.com\/\\w+",
  6328. 'content="!">|color:#2d2d2d',
  6329. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6330. 'optional--',
  6331. "//a[contains(@href,'docs.google.com')]",
  6332. true
  6333. );
  6334. }
  6335. if (GM_getValue("Check_google_dot_com_links", false))
  6336. {
  6337. addFileHost(
  6338. "drive.google.com\/\\w+",
  6339. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6340. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6341. 'optional--',
  6342. "//a[contains(@href,'drive.google.com')]",
  6343. true
  6344. );
  6345. }
  6346. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6347. {
  6348. addFileHost(
  6349. "up.media1fire\.com\/\\w+",
  6350. 'class="addthis_|value="download',
  6351. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6352. 'optional--',
  6353. "//a[contains(@href,'up.media1fire.com')]");
  6354. }
  6355. if (GM_getValue("Check_depfile_dot_com_links", false))
  6356. {
  6357. addFileHost(
  6358. "depfile\.com\/\\w+",
  6359. 'logo_0.png|downloads.gif"',
  6360. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6361. 'optional--',
  6362. "//a[contains(@href,'depfile.com')]");
  6363. }
  6364. if (GM_getValue("Check_go4up_dot_com_links", false))
  6365. {
  6366. addFileHost(
  6367. "go4up\.com\/\\w+",
  6368. 'style="width: 100%;">|value="Access|download_line',
  6369. '<title>GO4UP|dmca',
  6370. 'optional--',
  6371. "//a[contains(@href,'go4up.com')]");
  6372. }
  6373. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6374. {
  6375. addFileHost(
  6376. "redbunker\.net\/\\w+",
  6377. 'dload.png|rowspan="3">|yep.gif',
  6378. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6379. 'optional--',
  6380. "//a[contains(@href,'redbunker.net')]");
  6381. }
  6382. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6383. {
  6384. addFileHost(
  6385. "divxpress\.com\/\\w+",
  6386. 'btn_download|logo.png"',
  6387. 'AVOID_IE_BUG|var rr =',
  6388. 'optional--',
  6389. "//a[contains(@href,'divxpress.com')]");
  6390. }
  6391. if (GM_getValue("Check_anafile_dot_com_links", false))
  6392. {
  6393. addFileHost(
  6394. "anafile\.com\/\\w+",
  6395. 'width="881" valign="top|color="#800080"',
  6396. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6397. 'optional--',
  6398. "//a[contains(@href,'anafile.com')]");
  6399. }
  6400. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6401. {
  6402. addFileHost(
  6403. "uploadable\\.ch\/file\/\\w+",
  6404. 'captcha.js"|payment.js"|class="btn_download"',
  6405. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6406. 'optional--',
  6407. "//a[contains(@href,'uploadable.ch/file')]",
  6408. true
  6409. );
  6410. }
  6411. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6412. {
  6413. addFileHost(
  6414. "arabloads\.com\/\\w+",
  6415. 'name="method_free"|name="method_premium"',
  6416. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6417. 'optional--',
  6418. "//a[contains(@href,'arabloads.com')]");
  6419. }
  6420. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6421. {
  6422. addFileHost(
  6423. "sharerepo\.com\/\\w+",
  6424. 'name="method_free"',
  6425. 'var public_on=|The file you were looking for could not be found',
  6426. 'optional--',
  6427. "//a[contains(@href,'sharerepo.com')]");
  6428. }
  6429. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6430. {
  6431. addFileHost(
  6432. "sfshare\.se\/\\w+",
  6433. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6434. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6435. 'optional--',
  6436. "//a[contains(@href,'sfshare.se')]");
  6437. }
  6438. if (GM_getValue("Check_files_dot_fm_links", false))
  6439. {
  6440. addFileHost(
  6441. "files\.fm\/\\w+",
  6442. 'dl.png"|background-color: transparent',
  6443. 'margin: 40px 40px|background: none;',
  6444. 'optional--',
  6445. "//a[contains(@href,'files.fm')]");
  6446. }
  6447. if (GM_getValue("Check_koofile_dot_com_links", false))
  6448. {
  6449. addFileHost(
  6450. "koofile\.com\/\\w+",
  6451. 'value="download1">|name="method_free"',
  6452. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6453. 'optional--',
  6454. "//a[contains(@href,'koofile.com')]");
  6455. }
  6456. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6457. {
  6458. addFileHost(
  6459. "vidxden\\.com\/\\w+",
  6460. 'Continue to Video"',
  6461. 'No such file',
  6462. 'optional--',
  6463. "//a[contains(@href,'vidxden.com')]"
  6464. );
  6465. }
  6466. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6467. {
  6468. addFileHost(
  6469. "muchshare\\.net\/\\w+",
  6470. 'id="btn_download"',
  6471. 'File Not Found|width: 500px; text-align: left;',
  6472. 'optional--',
  6473. "//a[contains(@href,'muchshare.net')]"
  6474. );
  6475. }
  6476. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6477. {
  6478. addFileHost(
  6479. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6480. 'Details zur Datei|Details page',
  6481. 'Jetzt hochladen|upload now',
  6482. 'optional--',
  6483. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6484. );
  6485. }
  6486. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6487. {
  6488. addFileHost(
  6489. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6490. 'downloadbtn"',
  6491. 'DL_FileNotFound',
  6492. 'optional--',
  6493. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6494. );
  6495. }
  6496. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6497. {
  6498. addFileHost(
  6499. "fileflyer\.com\/view\/\\w+",
  6500. '(?:dwl|locked)btn"',
  6501. 'error.gif"|link">Removed|removedlink">',
  6502. 'optional--',
  6503. "//a[contains(@href,'fileflyer.com')]"
  6504. );
  6505. }
  6506. if (GM_getValue("Check_filestore_dot_to_links", false))
  6507. {
  6508. addFileHost(
  6509. "filestore\.to\/\\?d=\\w+",
  6510. '"downloading"',
  6511. 'Datei wurde nicht gefunden',
  6512. 'optional--',
  6513. "//a[contains(@href,'filestore.to')]"
  6514. );
  6515. }
  6516. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6517. {
  6518. addFileHost(
  6519. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6520. 'fz24">Download|class="pl15">',
  6521. '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',
  6522. 'optional--',
  6523. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6524. );
  6525. }
  6526. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6527. {
  6528. addFileHost(
  6529. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6530. 'File size:',
  6531. 'file is not found',
  6532. 'optional--',
  6533. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6534. );
  6535. }
  6536. if (GM_getValue("Check_datei_dot_to_links", false))
  6537. {
  6538. addFileHost(
  6539. "datei\\.to\/\\??\\w+",
  6540. 'icon_downloaden\\.png|>Download starten<',
  6541. 'Datei wurde nicht gefunden|icon_deleted.png',
  6542. 'optional--',
  6543. "//a[contains(@href,'datei.to')]"
  6544. );
  6545. }
  6546. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6547. {
  6548. addFileHost(
  6549. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6550. '<body class="body" id="body">|value="Slow Download"',
  6551. '<body class="body" >',
  6552. 'optional--',
  6553. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6554. );
  6555. }
  6556. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6557. {
  6558. addFileHost(
  6559. "putlocker\\.com\/file\/\\w{16}",
  6560. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6561. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6562. 'undergoing scheduled maintenance',
  6563. "//a[contains(@href,'putlocker.com/file')]"
  6564. );
  6565. } */
  6566. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6567. {
  6568. addFileHost(
  6569. "uploadhero\\.com\/dl\/\\w+",
  6570. 'content-dl">',
  6571. 'men_file_lost\\.jpg"',
  6572. 'optional--',
  6573. "//a[contains(@href,'uploadhero.com/dl')]"
  6574. );
  6575. }
  6576. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6577. {
  6578. addFileHost(
  6579. "unibytes\\.com\/[\\w\.]+",
  6580. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6581. 'File not found|Файл не найден|',
  6582. 'optional--',
  6583. "//a[contains(@href,'unibytes.com')]"
  6584. );
  6585. }
  6586. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6587. {
  6588. addFileHost(
  6589. "www\\.hellshare\\.com\/\\d+",
  6590. 'tab\\-details"',
  6591. 'list-purp-2"|not found on this server',
  6592. 'optional--',
  6593. "//a[contains(@href,'www.hellshare.com')]"
  6594. );
  6595. }
  6596. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6597. {
  6598. addFileHost(
  6599. "quickshare\\.cz\/slozka-\\d+",
  6600. 'Počet souborů: <strong>[1-9]',
  6601. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6602. 'optional--',
  6603. "//a[contains(@href,'quickshare.cz/slozka')]"
  6604. );
  6605. }
  6606. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6607. {
  6608. addFileHost(
  6609. "filefactory\\.com\/f\/\\w+",
  6610. 'folderFileList">',
  6611. 'table class="items"|Pointer" class="red">',
  6612. 'optional--',
  6613. "//a[contains(@href,'filefactory.com/f/')]"
  6614. );
  6615. }
  6616. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6617. {
  6618. addFileHost(
  6619. "netfolder\\.in\/\\w+",
  6620. 'list" value="http',
  6621. 'InPage_Error">|list" value=""',
  6622. 'optional--',
  6623. "//a[contains(@href,'netfolder.in')]"
  6624. );
  6625. }
  6626. if (GM_getValue("Check_load_dot_to_links", false))
  6627. {
  6628. addFileHost(
  6629. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6630. '"download_table_left">Size',
  6631. 'Can\'t find file',
  6632. 'optional--',
  6633. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6634. );
  6635. }
  6636. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6637. {
  6638. addFileHost(
  6639. "freakshare\\.(?:net|com)\/files\/",
  6640. 'box_heading',
  6641. '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|الملف المطلوب غير موجود',
  6642. 'Your Traffic is used up for today',
  6643. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6644. true
  6645. );
  6646. //folders
  6647. addFileHost(
  6648. "freakshare\\.(?:net|com)\/folder\/",
  6649. 'Files: [1-9]',
  6650. 'Files: 0',
  6651. 'optional--',
  6652. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6653. true
  6654. );
  6655. }
  6656. if (GM_getValue("Check_divshare_dot_com_links", false))
  6657. {
  6658. addFileHost(
  6659. "divshare\\.com\/download\/",
  6660. 'download_new\.png',
  6661. 'have been removed',
  6662. 'optional--',
  6663. "//a[contains(@href,'divshare.com')]"
  6664. );
  6665. }
  6666. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6667. {
  6668. addFileHost(
  6669. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6670. 'nazev-souboru">',
  6671. '<div id="obsah">\\s*<h1>',
  6672. 'optional--',
  6673. "//a[contains(@href,'euroshare.eu/file')]"
  6674. );
  6675. }
  6676. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6677. {
  6678. addFileHost(
  6679. 'files\\.mail\\.ru/(?:\\w*)',
  6680. 'fileList',
  6681. 'errorMessage',
  6682. 'optional--',
  6683. "//a[contains(@href,'files.mail.ru')]"
  6684. );
  6685. }
  6686. if (GM_getValue("Check_megashares_dot_com_links", false))
  6687. {
  6688. addFileHost(
  6689. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6690. 'Filesize',
  6691. 'Invalid|deleted|Could not download file',
  6692. 'slots|scheduled maintenance',
  6693. "//a[contains(@href,'megashares.com/')]"
  6694. );
  6695. }
  6696. if (GM_getValue("Check_narod_dot_ru_links", false))
  6697. {
  6698. addFileHost(
  6699. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6700. 'b-submit',
  6701. 'b-download-virus-note|headCode">404<',
  6702. 'Внутренняя ошибка сервиса',
  6703. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6704. );
  6705. }
  6706. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6707. {
  6708. addFileHost(
  6709. "rayfile\\.com\/",
  6710. 'FILEtitleTXT',
  6711. 'blueRow',
  6712. 'optional--',
  6713. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6714. );
  6715. }
  6716. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6717. {
  6718. addFileHost(
  6719. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6720. 'button_green_body"',
  6721. 'error">',
  6722. 'optional--',
  6723. "//a[contains(@href,'filesmonster.com/download')]"
  6724. );
  6725. }
  6726. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6727. {
  6728. addFileHost(
  6729. 'usaupload\\.net\/d\/(?:\w*)',
  6730. '<strong>File size:</strong>',
  6731. 'is not available',
  6732. 'optional--',
  6733. "//a[contains(@href,'usaupload.net/d/')]"
  6734. );
  6735. }
  6736. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6737. {
  6738. addFileHost(
  6739. 'sendspace\\.com\/file\/\\w+',
  6740. 'file_description',
  6741. 'msg error"',
  6742. 'optional--',
  6743. "//a[contains(@href,'sendspace.com/file')]"
  6744. );
  6745. }
  6746. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6747. {
  6748. addFileHost(
  6749. 'sendspace\\.pl\/file\/\\w+',
  6750. 'download_file"',
  6751. 'Podany plik nie',
  6752. 'optional--',
  6753. "//a[contains(@href,'sendspace.pl/file')]"
  6754. );
  6755. }
  6756. if (GM_getValue("Check_uploading_dot_com_links", false))
  6757. {
  6758. addFileHost(
  6759. 'uploading\\.com\/(?:files\/)?\\w+',
  6760. 'free_method">',
  6761. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6762. 'optional--',
  6763. "//a[contains(@href,'uploading.com')]"
  6764. );
  6765. }
  6766. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6767. {
  6768. addFileHost(
  6769. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6770. 'fileId"',
  6771. 'error">',
  6772. 'optional--',
  6773. "//a[contains(@href,'gigasize.com/get')]"
  6774. );
  6775. }
  6776. if (GM_getValue("Check_good_dot_com_links", false))
  6777. {
  6778. addFileHost(
  6779. 'good\\.net\/(?:_|dl)',
  6780. 'Free Download',
  6781. 'Not Found',
  6782. 'Forbidden',
  6783. "//a[contains(@href,'good.net')]"
  6784. );
  6785. }
  6786. if (GM_getValue("Check_2shared_dot_com_links", false))
  6787. {
  6788. addFileHost(
  6789. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6790. 'File size',
  6791. 'File not found|is not valid|/images/important.gif',
  6792. 'optional--',
  6793. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6794. );
  6795. }
  6796. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6797. {
  6798. addFileHost(
  6799. 'turboupload\\.com\/\\w*',
  6800. 'You have requested',
  6801. 'File Not Found',
  6802. 'optional--',
  6803. "//a[contains(@href,'turboupload.com')]"
  6804. );
  6805. }
  6806. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6807. {
  6808. addFileHost(
  6809. 'gigapeta\\.com\/dl\/',
  6810. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6811. '404|page_error',
  6812. 'optional--',
  6813. "//a[contains(@href,'gigapeta.com/dl')]"
  6814. );
  6815. }
  6816. if (GM_getValue("Check_veehd_dot_com_links", false))
  6817. {
  6818. addFileHost(
  6819. 'veehd\.com\/video\/.*?',
  6820. 'No sound|Download video',
  6821. 'Featured Videos',
  6822. 'optional--',
  6823. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6824. );
  6825. }
  6826. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6827. {
  6828. addFileHost(
  6829. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6830. 'fast_download_form">|submit_sms_download',
  6831. '<p style="text-align:center">',
  6832. 'optional--',
  6833. "//a[contains(@href,'vip-file.com/download')]"
  6834. );
  6835. }
  6836. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6837. {
  6838. addFileHost(
  6839. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6840. 'download\\-pnl ',
  6841. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6842. 'optional--',
  6843. "//a[contains(@href,'letitbit.net/download')]"
  6844. );
  6845. }
  6846. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6847. {
  6848. addFileHost(
  6849. 'ifolder\.ru\/\\d+',
  6850. 'file-info',
  6851. 'ui-state-error',
  6852. 'optional--',
  6853. "//a[contains(@href,'ifolder.ru')]"
  6854. );
  6855. }
  6856. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6857. {
  6858. addFileHost(
  6859. 'fileswap\\.com\/dl\/\\w+',
  6860. 'bttnDownloadLink"',
  6861. 'rounded_block_error"',
  6862. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6863. "//a[contains(@href,'fileswap.com/dl')]"
  6864. );
  6865. }
  6866. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6867. {
  6868. addFileHost(
  6869. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6870. 'var __error = 0',
  6871. 'FILES__DOESNT_EXIST|removed or did not exist',
  6872. 'optional--',
  6873. "//a[contains(@href,'filecloud.io/')]"
  6874. );
  6875. addFileHost(
  6876. 'ifile\\.it\/\\w+',
  6877. 'var __error = 0',
  6878. 'FILES__DOESNT_EXIST',
  6879. 'optional--',
  6880. "//a[contains(@href,'ifile.it/')]"
  6881. );
  6882. }
  6883. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6884. {
  6885. addFileHost(
  6886. 'solidfiles\\.com\/d\/\\w+',
  6887. 'id="download"|content="Download',
  6888. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6889. 'optional--',
  6890. "//a[contains(@href,'solidfiles.com/d')]"
  6891. );
  6892. }
  6893. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6894. {
  6895. addFileHost(
  6896. "(?:.\\.|)shareflare\\.net",
  6897. 'download-pnl|<div class="premium-block">',
  6898. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6899. 'optional--',
  6900. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6904. {
  6905. addFileHost(
  6906. "u18116681.shareflare\\.net",
  6907. 'download-pnl|<div class="premium-block">',
  6908. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6909. 'optional--',
  6910. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6911. );
  6912. }
  6913. if (GM_getValue("Check_uloz_dot_to_links", false))
  6914. {
  6915. addFileHost(
  6916. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6917. 'fileDownload">|fileSize">',
  6918. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6919. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6920. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6921. true
  6922. );
  6923. }
  6924. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6925. {
  6926. addFileHost(
  6927. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6928. 'file\\-list-orderby|section-filedetail">',
  6929. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6930. 'optional--',
  6931. "//a[contains(@href,'hellspy.')]"
  6932. );
  6933. }
  6934. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6935. {
  6936. addFileHost(
  6937. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6938. '<body onload="">',
  6939. 'neexistuje|not exist',
  6940. 'optional--',
  6941. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6942. );
  6943. }
  6944. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6945. {
  6946. addFileHost(
  6947. "stahovanizasms\\.cz\/\\w+",
  6948. 'download\\.png>|font-size:11px><tr>',
  6949. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6950. 'optional--',
  6951. "//a[contains(@href,'stahovanizasms.cz')]"
  6952. );
  6953. }
  6954. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6955. {
  6956. addFileHost(
  6957. "share-links\\.biz\/\\w*",
  6958. 'online\\.gif',
  6959. '(?:offline|parts)\\.gif',
  6960. 'optional--',
  6961. "//a[contains(@href,'share-links.biz')]"
  6962. );
  6963. }
  6964. if (GM_getValue("Check_4shared_dot_com_links", false))
  6965. {
  6966. addFileHost(
  6967. "4shared\\.com\/.+\/",
  6968. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6969. 'class="warn\"|big red"|GetDataBack',
  6970. 'Service Unavailable',
  6971. "//a[contains(@href,'4shared.com')]"
  6972. );
  6973. }
  6974. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6975. {
  6976. addFileHost(
  6977. "(?:www\\d+\.|)zippyshare\.com\/",
  6978. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6979. 'not exist|Status 404',
  6980. 'optional--',
  6981. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6982. );
  6983. }
  6984. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6985. {
  6986. addFileHost(
  6987. "mediafire\.com\/",
  6988. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6989. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6990. 'set to private',
  6991. "//a[contains(@href,'mediafire.com')]"
  6992. );
  6993. }
  6994. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6995. {
  6996. addFileHost(
  6997. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6998. '<h2>Authentification</h2></li>| MB|0 seconds|1,00 GB',
  6999. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7000. 'optional--',
  7001. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7002. );
  7003. }
  7004. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7005. {
  7006. addFileHost(
  7007. "ulozisko\.sk\/",
  7008. 'Detaily',
  7009. 'neexistuje',
  7010. 'optional--',
  7011. "//a[contains(@href,'ulozisko.sk')]"
  7012. );
  7013. }
  7014. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7015. {
  7016. addFileHost(
  7017. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7018. 'download.php',
  7019. 'notfound|upload\\-suborov\\.php"',
  7020. 'optional--',
  7021. "//a[contains(@href,'upnito.sk')]"
  7022. );
  7023. }
  7024. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7025. {
  7026. addFileHost(
  7027. "uptobox\\.com\/\\w+",
  7028. 'Create Download Link">',
  7029. '500px;text-align:left;">|File not found|Fichier introuvable',
  7030. 'Maintenance|not available in your country',
  7031. "//a[contains(@href,'uptobox.com')]"
  7032. );
  7033. }
  7034. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7035. {
  7036. addFileHost(
  7037. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7038. 'FILE DOWNLOAD<',
  7039. 'File Does Not Exist',
  7040. 'optional--',
  7041. "//a[contains(@href,'sharecash.org/download.php')]"
  7042. );
  7043. }
  7044. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7045. {
  7046. addFileHost(
  7047. "depositfiles\\.com\/folders\/\\w+",
  7048. '<div class="progressContainer">',
  7049. '<div id="files" class="files">\\s*<\/div>',
  7050. 'optional--',
  7051. "//a[contains(@href,'depositfiles.com/folders')]"
  7052. );
  7053. }
  7054. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7055. {
  7056. addFileHost(
  7057. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7058. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7059. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7060. 'optional--',
  7061. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7062. );
  7063. }
  7064. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7065. {
  7066. addFileHost(
  7067. "rapidfileshare\\.net/\\w+",
  7068. '<div id="upload-header-bg">',
  7069. '<div style="width:500px;text-align:left;">',
  7070. 'optional--',
  7071. "//a[contains(@href,'rapidfileshare.net/')]"
  7072. );
  7073. }
  7074. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7075. {
  7076. addFileHost(
  7077. "stiahnito\\.sk/",
  7078. '<span class="filesize right">',
  7079. '<ol class="list-purp-2">',
  7080. 'optional--',
  7081. "//a[contains(@href,'stiahnito.sk/')]"
  7082. );
  7083. }
  7084. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7085. {
  7086. addFileHost(
  7087. "rusfolder\\.(?:com|net)",
  7088. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7089. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7090. 'optional--',
  7091. "//a[contains(@href,'rusfolder')]"
  7092. );
  7093. }
  7094. if (GM_getValue("Check_fileover_dot_net_links", false))
  7095. {
  7096. addFileHost(
  7097. "fileover\\.net/\\d+",
  7098. 'id="filesize"',
  7099. 'Not found or deleted|The following file is unavailable',
  7100. 'optional--',
  7101. "//a[contains(@href,'fileover.net/')]"
  7102. );
  7103. }
  7104. if (GM_getValue("Check_catshare_dot_net_links", false))
  7105. {
  7106. addFileHost(
  7107. "catshare\\.net/\\w+",
  7108. '"icon-share',
  7109. 'alert alert-error',
  7110. 'optional--',
  7111. "//a[contains(@href,'catshare.net/')]"
  7112. );
  7113. }
  7114. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7115. {
  7116. addFileHost(
  7117. "anonfiles\\.com/\\w+",
  7118. '"download_button"',
  7119. '<legend><b>404</b>',
  7120. 'optional--',
  7121. "//a[contains(@href,'anonfiles.com')]"
  7122. );
  7123. }
  7124. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7125. {
  7126. addFileHost(
  7127. "mixturecloud\\.com/media/\\w+",
  7128. '"btn icon i_globe gray share_150',
  7129. '"s_cross_close"></span> 404:',
  7130. 'optional--',
  7131. "//a[contains(@href,'mixturecloud.com/media/')]"
  7132. );
  7133. }
  7134. if (GM_getValue("Check_akafile_dot_com_links", false))
  7135. {
  7136. addFileHost(
  7137. "akafile\\.com\/\\w+",
  7138. 'download1',
  7139. 'File Not Found',
  7140. 'optional--',
  7141. "//a[contains(@href,'akafile.com/')]"
  7142. );
  7143. }
  7144. if (GM_getValue("Check_creafile_dot_net_links", false))
  7145. {
  7146. addFileHost(
  7147. "creafile\\.net\/\\w+",
  7148. 'downloadblock',
  7149. 'errtitle',
  7150. 'optional--',
  7151. "//a[contains(@href,'creafile.net/')]"
  7152. );
  7153. }
  7154. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7155. {
  7156. addFileHost(
  7157. "hugefiles\\.net\/\\w+",
  7158. 'download1|class="btn-create-download" value="Create Download Link">',
  7159. 'File Not Found|No such file with this filename',
  7160. 'optional--',
  7161. "//a[contains(@href,'hugefiles.net/')]"
  7162. );
  7163. }
  7164. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7165. {
  7166. addFileHost(
  7167. "sendmyway\\.com\/\\w+",
  7168. 'id="btn_download"',
  7169. '500px;text-align:left;"|<center><h3>',
  7170. 'optional--',
  7171. "//a[contains(@href,'sendmyway.com/')]"
  7172. );
  7173. }
  7174. if (GM_getValue("Check_upload_dot_ee_links", false))
  7175. {
  7176. addFileHost(
  7177. "upload\\.ee\/\\w+",
  7178. 'onmouseout="document.dllink.src',
  7179. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7180. 'optional--',
  7181. "//a[contains(@href,'upload.ee/')]"
  7182. );
  7183. }
  7184. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7185. {
  7186. addFileHost(
  7187. "shareplace\\.org\/\\?\\w+",
  7188. 'Download-Link',
  7189. 'Your requested file is not found|Select file to send',
  7190. 'optional--',
  7191. "//a[contains(@href,'shareplace.org/?')]"
  7192. );
  7193. }
  7194. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7195. {
  7196. addFileHost(
  7197. "uploadc\\.com\/\\w+",
  7198. 'id="prebut"',
  7199. 'File Not Found|This file has been removed due',
  7200. 'optional--',
  7201. "//a[contains(@href,'uploadc.com/')]"
  7202. );
  7203. }
  7204. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7205. {
  7206. addFileHost(
  7207. "remixshare\\.com\/\\w+",
  7208. 'id="dl2"',
  7209. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7210. 'optional--',
  7211. "//a[contains(@href,'remixshare.com/')]"
  7212. );
  7213. }
  7214. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7215. {
  7216. addFileHost(
  7217. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7218. 'Last Download :',
  7219. 'img src="\\/404.jpg"',
  7220. 'optional--',
  7221. "//a[contains(@href,'exoshare.com/download.php')]"
  7222. );
  7223. }
  7224. if (GM_getValue("Check_borncash_dot_org_links", false))
  7225. {
  7226. addFileHost(
  7227. "borncash\\.org\/download\/\\?a=\\w+",
  7228. 'class="knop_1"',
  7229. '\/error\/er00',
  7230. 'optional--',
  7231. "//a[contains(@href,'borncash.org/download/')]"
  7232. );
  7233. }
  7234. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7235. {
  7236. addFileHost(
  7237. "vidplay\.net\/\\w+",
  7238. 'solvemedia puzzle widget',
  7239. 'File not found|AVOID_IE_BUG',
  7240. 'optional--',
  7241. "//a[contains(@href,'vidplay.net')]");
  7242. }
  7243. if (GM_getValue("Check_storagon_dot_com_links", false))
  7244. {
  7245. addFileHost(
  7246. "storagon\.com\/\\w+",
  7247. 'class="icon-cloud-download"></i>|content="Download Options',
  7248. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7249. 'optional--',
  7250. "//a[contains(@href,'storagon.com')]");
  7251. }
  7252. if (GM_getValue("Check_filedais_dot_com_links", false))
  7253. {
  7254. addFileHost(
  7255. "filedais\.com\/\\w+",
  7256. 'class="btn btn-info"|name="method_free"',
  7257. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7258. 'optional--',
  7259. "//a[contains(@href,'filedais.com')]");
  7260. }
  7261. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7262. {
  7263. addFileHost(
  7264. "ryushare\.com\/\\w+",
  7265. 'KB|MB',
  7266. '<div style="width:500px;text-align:left;">',
  7267. 'in maintenance mode|Software error:',
  7268. "//a[contains(@href,'ryushare.com')]");
  7269. }
  7270. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7271. {
  7272. addFileHost(
  7273. "up.4share\.vn\/\\w+",
  7274. '<font size="2" face="Verdana">',
  7275. 'font: 13px Tahoma; color: Brown',
  7276. 'optional--',
  7277. //'optional--',
  7278. "//a[contains(@href,'up.4share.vn')]");
  7279. }
  7280. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7281. {
  7282. addFileHost(
  7283. "share.vnn\.vn\/\\w+",
  7284. '"index,follow"|<div class="main" id="download-box">',
  7285. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7286. 'optional--',
  7287. //'optional--',
  7288. "//a[contains(@href,'share.vnn.vn')]");
  7289. }
  7290. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7291. {
  7292. addFileHost(
  7293. "upfile\.vn\/\\w+",
  7294. 'download-timer',
  7295. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7296. 'optional--',
  7297. //'optional--',
  7298. "//a[contains(@href,'upfile.vn')]");
  7299. }
  7300. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7301. {
  7302. addFileHost(
  7303. "firedrive\\.com\/file\/\\w{16}",
  7304. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7305. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7306. 'undergoing scheduled maintenance',
  7307. "//a[contains(@href,'firedrive.com/file')]"
  7308. );
  7309. } */
  7310. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7311. {
  7312. addFileHost(
  7313. "aisfile\.com\/\\w+",
  7314. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7315. '<div style="width:500px;text-align:left;">|File Not Found',
  7316. 'optional--',
  7317. //'optional--',
  7318. "//a[contains(@href,'aisfile.com')]");
  7319. }
  7320. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7321. {
  7322. addFileHost(
  7323. "usersfiles\.com\/\\w+",
  7324. 'class="btn btn-success|id="btn_download" class="btn"',
  7325. '<div style="width:500px;text-align:left;">',
  7326. 'optional--',
  7327. //'optional--',
  7328. "//a[contains(@href,'usersfiles.com')]");
  7329. }
  7330. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7331. {
  7332. addFileHost(
  7333. "pan.baidu\.com\/\\w+",
  7334. 'target="_blank" title=|share-personal-info',
  7335. 'share_notfound.png|background:#f9f9f9',
  7336. 'optional--',
  7337. //'optional--',
  7338. "//a[contains(@href,'pan.baidu.com')]");
  7339. }
  7340. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7341. {
  7342. addFileHost(
  7343. "yunpan\.cn\/\\w+",
  7344. 'class="icon icon-download',
  7345. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7346. 'optional--',
  7347. //'optional--',
  7348. "//a[contains(@href,'yunpan.cn')]");
  7349. }
  7350. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7351. {
  7352. addFileHost(
  7353. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7354. 'getElementById("downbild")|style.display',
  7355. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7356. 'optional--',
  7357. //'optional--',
  7358. "//a[contains(@href,'file-upload.net')]");
  7359. }
  7360. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7361. {
  7362. addFileHost(
  7363. "gulfup\.com\/",
  7364. '<!-- Downlod template -->|download.gif',
  7365. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7366. 'optional--',
  7367. //'optional--',
  7368. "//a[contains(@href,'gulfup.com')]");
  7369. }
  7370. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7371. {
  7372. addFileHost(
  7373. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7374. 'dldtable">',
  7375. 'does not exist\\.',
  7376. 'optional--',
  7377. //'optional--',
  7378. "//a[contains(@href,'datafilehost.com')]");
  7379. }
  7380. if (GM_getValue("Check_box_dot_com_links", false))
  7381. {
  7382. addFileHost(
  7383. "box\.com\/\\w+",
  7384. 'download-file-btn|id="download_button',
  7385. 'BIyMin.png| <div class="error_message|link has been removed',
  7386. 'optional--',
  7387. //'optional--',
  7388. "//a[contains(@href,'app.box.com')]");
  7389. }
  7390. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7391. {
  7392. addFileHost(
  7393. "dropbox\.com\/s\/\\w+",
  7394. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7395. '>Nothing Here<|>Error (404)<',
  7396. 'title>Dropbox - 509|Error (403)|Error: 429',
  7397. "//a[contains(@href,'dropbox.com')]");
  7398. }
  7399. if (GM_getValue("Check_box_dot_net_links", false))
  7400. {
  7401. addFileHost(
  7402. "box\.net\/\\w+",
  7403. 'download-file-btn|id="download_button',
  7404. 'BIyMin.png| <div class="error_message',
  7405. 'optional--',
  7406. //'optional--',
  7407. "//a[contains(@href,'box.net')]");
  7408. }
  7409. if (GM_getValue("Check_fileband_dot_com_links", false))
  7410. {
  7411. addFileHost(
  7412. "fileband\.com\/\\w+",
  7413. 'value="download1">|name="id" value=',
  7414. '<div style="width:500px;text-align:left;">|not be found',
  7415. 'optional--',
  7416. //'optional--',
  7417. "//a[contains(@href,'fileband.com')]");
  7418. }
  7419. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7420. {
  7421. addFileHost(
  7422. "uploadrocket\.net\/\\w+",
  7423. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7424. 'font style="color:#d33;|File Not Found',
  7425. 'optional--',
  7426. //'optional--',
  7427. "//a[contains(@href,'uploadrocket.net')]");
  7428. }
  7429. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7430. {
  7431. addFileHost(
  7432. "filedropper\.com\/\\w+",
  7433. 'background:#ddd;|width:985px; ',
  7434. 'background-color:#FFFFFF;|margin-left: -400px;',
  7435. 'optional--',
  7436. //'optional--',
  7437. "//a[contains(@href,'filedropper.com')]");
  7438. }
  7439. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7440. {
  7441. addFileHost(
  7442. "tropicshare\\.com\/files\/\\d+",
  7443. 'MB</span>|GB</span>|KB</span>',
  7444. '>FNF<|size: </span>',
  7445. 'optional--',
  7446. //'optional--',
  7447. "//a[contains(@href,'tropicshare.com')]");
  7448. }
  7449. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7450. {
  7451. addFileHost(
  7452. "goldbytez\.com\/\\w+",
  7453. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7454. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7455. 'optional--',
  7456. //'optional--',
  7457. "//a[contains(@href,'goldbytez.com')]");
  7458. }
  7459. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7460. {
  7461. addFileHost(
  7462. "worldbytez\.com\/\\w+",
  7463. '<div class="download_type">',
  7464. '<div style="width:500px;text-align:left;">',
  7465. 'optional--',
  7466. //'optional--',
  7467. "//a[contains(@href,'worldbytez.com')]");
  7468. }
  7469. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7470. {
  7471. addFileHost(
  7472. "freefilehosting\.net\/\\w+",
  7473. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7474. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7475. 'optional--',
  7476. //'optional--',
  7477. "//a[contains(@href,'freefilehosting.net')]");
  7478. }
  7479. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7480. {
  7481. addFileHost(
  7482. "ziddu\.com\/\\w+",
  7483. 'downloads.ziddu.com|downloadfilelinkicon',
  7484. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7485. 'optional--',
  7486. //'optional--',
  7487. "//a[contains(@href,'ziddu.com')]");
  7488. }
  7489. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7490. {
  7491. addFileHost(
  7492. "exclusiveloader\.com\/\\w+",
  7493. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7494. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7495. 'optional--',
  7496. //'optional--',
  7497. "//a[contains(@href,'exclusiveloader.com')]");
  7498. }
  7499. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7500. {
  7501. addFileHost(
  7502. "sharerapid\.cz\/\\w+",
  7503. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7504. 'error_div">|404 - Not Found',
  7505. 'optional--',
  7506. //'optional--',
  7507. "//a[contains(@href,'sharerapid.cz')]");
  7508. }
  7509. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7510. {
  7511. addFileHost(
  7512. "sdilej\.cz\/\\w+",
  7513. 'class="page-download"',
  7514. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7515. 'optional--',
  7516. //'optional--',
  7517. "//a[contains(@href,'sdilej.cz')]");
  7518. }
  7519. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7520. {
  7521. addFileHost(
  7522. "lafiles\.com\/\\w+",
  7523. '<div id="pay_modes">',
  7524. '<b class="err"></b>',
  7525. 'optional--',
  7526. //'optional--',
  7527. "//a[contains(@href,'lafiles.com')]");
  7528. }
  7529. if (GM_getValue("Check_fboom_dot_me_links", false))
  7530. {
  7531. addFileHost(
  7532. "fboom\.me\/file\/\\w+",
  7533. 'id="download-free" href="#"',
  7534. 'class="error-v1-title">404<|File not found or deleted',
  7535. 'optional--',
  7536. //'optional--',
  7537. "//a[contains(@href,'fboom.me')]");
  7538. }
  7539. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7540. {
  7541. addFileHost(
  7542. "fileboom\.me\/file\/\\w+",
  7543. 'id="download-free" href="#"',
  7544. 'class="error-v1-title">404<|File not found or deleted',
  7545. 'optional--',
  7546. //'optional--',
  7547. "//a[contains(@href,'fileboom.me')]");
  7548. }
  7549. if (GM_getValue("Check_acefile_dot_net_links", false))
  7550. {
  7551. addFileHost(
  7552. "acefile\.net\/\\w+",
  7553. 'align=right nowrap><b>',
  7554. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7555. 'optional--',
  7556. //'optional--',
  7557. "//a[contains(@href,'acefile.net')]");
  7558. }
  7559. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7560. {
  7561. addFileHost(
  7562. "megarapid\.cz\/\\w+",
  7563. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7564. 'error_div">|404 - Not Found',
  7565. 'optional--',
  7566. //'optional--',
  7567. "//a[contains(@href,'megarapid.cz')]");
  7568. }
  7569. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7570. {
  7571. addFileHost(
  7572. "yadi\.sk\/\\w+",
  7573. 'twitter:site|View and download',
  7574. 'error code|Nothing found',
  7575. 'optional--',
  7576. //'optional--',
  7577. "//a[contains(@href,'yadi.sk')]");
  7578. }
  7579. if (GM_getValue("Check_imdb_dot_com_links", false))
  7580. {
  7581. addFileHost(
  7582. "imdb\.com\/\\w+",
  7583. 'imdb.com',
  7584. '404 Error',
  7585. 'optional--',
  7586. "//a[contains(@href,'imdb.com')]");
  7587. }
  7588. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7589. {
  7590. addFileHost(
  7591. "hitfile\.net\/\\w+",
  7592. 'class="download-file',
  7593. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7594. 'optional--',
  7595. //'optional--',
  7596. "//a[contains(@href,'hitfile.net')]");
  7597. }
  7598. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7599. {
  7600. addFileHost(
  7601. "uploadto\\.us\/file\/details\/[\\w+-]",
  7602. 'name="recaptcha_response',
  7603. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7604. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7605. "//a[contains(@href,'uploadto.us/file')]",
  7606. true);
  7607. } */
  7608. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7609. {
  7610. addFileHost(
  7611. "nitroflare\.com\/\\w+",
  7612. 'alert.png|LowSpeedMeter.png',
  7613. 'file has been removed|id="error" style="display|Probably deleted',
  7614. 'optional--',
  7615. "//a[contains(@href,'nitroflare.com')]");
  7616. }
  7617. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7618. {
  7619. addFileHost(
  7620. "up.top4top\.net\/\\w+",
  7621. 'start Downlod template',
  7622. 'start err template',
  7623. 'optional--',
  7624. "//a[contains(@href,'up.top4top.net')]");
  7625. }
  7626. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7627. {
  7628. addFileHost(
  7629. "filejoker\.net\/\\w+",
  7630. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7631. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7632. 'optional--',
  7633. "//a[contains(@href,'filejoker.net')]");
  7634. }
  7635. if (GM_getValue("Check_free_dot_fr_links", false))
  7636. {
  7637. addFileHost(
  7638. "(?:dl.\\.|)free\\.fr",
  7639. 'Valider et t&eacute;l&eacute',
  7640. 'Fichier inexistant',
  7641. 'optional--',
  7642. "//a[contains(@href,'free.fr')]");
  7643. }
  7644. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7645. {
  7646. addFileHost(
  7647. "gboxes\.com\/\\w+",
  7648. 'You have requested|color="red">http://www.gboxes.com',
  7649. 'File Not Found|<div style="width:500px;text-align:left;">',
  7650. 'optional--',
  7651. "//a[contains(@href,'gboxes.com')]");
  7652. }
  7653. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7654. {
  7655. addFileHost(
  7656. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7657. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7658. 'File not found|file could not be found|Select files to send',
  7659. 'optional--',
  7660. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7661. );
  7662. }
  7663. if (GM_getValue("Check_led_dot_wf_links", false))
  7664. {
  7665. addFileHost(
  7666. "led\.wf\/\\w+",
  7667. 'logo_0.png|downloads.gif"',
  7668. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7669. 'optional--',
  7670. "//a[contains(@href,'led.wf')]");
  7671. }
  7672. if (GM_getValue("Check_lan_dot_wf_links", false))
  7673. {
  7674. addFileHost(
  7675. "lan\.wf\/\\w+",
  7676. 'logo_0.png|downloads.gif"',
  7677. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7678. 'optional--',
  7679. "//a[contains(@href,'lan.wf')]");
  7680. }
  7681. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7682. {
  7683. addFileHost(
  7684. "adlink\.wf\/\\w+",
  7685. 'logo_0.png|downloads.gif"',
  7686. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7687. 'optional--',
  7688. "//a[contains(@href,'adlink.wf')]");
  7689. }
  7690. if (GM_getValue("Check_click_dot_tf_links", false))
  7691. {
  7692. addFileHost(
  7693. "click\.tf\/\\w+",
  7694. 'logo_0.png|downloads.gif"',
  7695. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7696. 'optional--',
  7697. "//a[contains(@href,'click.tf')]");
  7698. }
  7699. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7700. {
  7701. addFileHost(
  7702. "ssh\.tf\/\\w+",
  7703. 'logo_0.png|downloads.gif"',
  7704. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7705. 'optional--',
  7706. "//a[contains(@href,'ssh.tf')]");
  7707. }
  7708. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7709. {
  7710. addFileHost(
  7711. "ssh\.yt\/\\w+",
  7712. 'logo_0.png|downloads.gif"',
  7713. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7714. 'optional--',
  7715. "//a[contains(@href,'ssh.yt')]");
  7716. }
  7717. if (GM_getValue("Check_yep_dot_pm_links", false))
  7718. {
  7719. addFileHost(
  7720. "yep\.pm\/\\w+",
  7721. 'logo_0.png|downloads.gif"',
  7722. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7723. 'optional--',
  7724. "//a[contains(@href,'yep.pm')]");
  7725. }
  7726. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7727. {
  7728. addFileHost(
  7729. "kyc\.pm\/\\w+",
  7730. 'logo_0.png|downloads.gif"',
  7731. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7732. 'optional--',
  7733. "//a[contains(@href,'kyc.pm')]");
  7734. }
  7735. if (GM_getValue("Check_brupload_dot_net_links", false))
  7736. {
  7737. addFileHost(
  7738. "brupload\.net\/\\w+",
  7739. 'Download Gratuito',
  7740. '<div style="width:500px;text-align:left;">',
  7741. 'optional--',
  7742. //'optional--',
  7743. "//a[contains(@href,'brupload.net')]");
  7744. }
  7745. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7746. {
  7747. addFileHost(
  7748. "cloudzilla\.to\/\\w+",
  7749. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7750. 'File not found|/imgs/broken.png',
  7751. 'optional--',
  7752. //'optional--',
  7753. "//a[contains(@href,'cloudzilla.to')]");
  7754. }
  7755. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7756. {
  7757. addFileHost(
  7758. "fileparadox\.in\/\\w+",
  7759. 'CONTENT="Download File|method_free_file',
  7760. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7761. 'optional--',
  7762. //'optional--',
  7763. "//a[contains(@href,'fileparadox.in')]");
  7764. }
  7765. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7766. {
  7767. addFileHost(
  7768. "clicknupload\.com\/\\w+",
  7769. 'name="method_free',
  7770. 'File Not Found',
  7771. 'optional--',
  7772. //'optional--',
  7773. "//a[contains(@href,'clicknupload.com')]");
  7774. }
  7775. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7776. {
  7777. addFileHost(
  7778. "ex-load\.com\/\\w+",
  7779. 'name="method_free|<p>Download File:</p>',
  7780. 'Folder Not Found|File Not Found|Error 404',
  7781. 'optional--',
  7782. //'optional--',
  7783. "//a[contains(@href,'ex-load.com')]");
  7784. }
  7785. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7786. {
  7787. addFileHost(
  7788. "hexupload\.com\/\\w+",
  7789. 'button" value="Free|type="submit" value=""',
  7790. 'File Not Found|<div style="width:500px;text-align:left;">',
  7791. 'optional--',
  7792. //'optional--',
  7793. "//a[contains(@href,'hexupload.com')]");
  7794. }
  7795. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7796. {
  7797. addFileHost(
  7798. "wizupload\.com\/\\w+",
  7799. 'btn_download|class="downloadbtn"',
  7800. '>File Not Found<',
  7801. 'optional--',
  7802. //'optional--',
  7803. "//a[contains(@href,'wizupload.com')]");
  7804. }
  7805. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7806. {
  7807. addFileHost(
  7808. "filecloud\.cc\/\\w+",
  7809. 'align="center"><input type="submit" name=',
  7810. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7811. 'optional--',
  7812. //'optional--',
  7813. "//a[contains(@href,'filecloud.cc')]");
  7814. }
  7815. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7816. {
  7817. addFileHost(
  7818. "inclouddrive\.com\/\\w+",
  7819. 'initfreedownload',
  7820. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7821. 'optional--',
  7822. //'optional--',
  7823. "//a[contains(@href,'inclouddrive.com')]");
  7824. }
  7825. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7826. {
  7827. addFileHost(
  7828. "radicalshare\.com\/\\w+",
  7829. 'value="download1|name="method_free"',
  7830. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7831. 'optional--',
  7832. //'optional--',
  7833. "//a[contains(@href,'radicalshare.com')]");
  7834. }
  7835. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7836. {
  7837. addFileHost(
  7838. "sharemods\.com\/\\w+",
  7839. 'name="method_free"',
  7840. 'File Not Found<',
  7841. 'optional--',
  7842. //'optional--',
  7843. "//a[contains(@href,'sharemods.com')]");
  7844. }
  7845. if (GM_getValue("Check_hostr_dot_co_links", false))
  7846. {
  7847. addFileHost(
  7848. "hostr\.co\/\\w+",
  7849. 'method="get"',
  7850. 'File not found<|error-page',
  7851. 'optional--',
  7852. //'optional--',
  7853. "//a[contains(@href,'hostr.co')]");
  7854. }
  7855. if (GM_getValue("Check_filepi_dot_com_links", false))
  7856. {
  7857. addFileHost(
  7858. "filepi\.com\/\\w+",
  7859. 'id="button_start">',
  7860. 'File not found',
  7861. 'optional--',
  7862. //'optional--',
  7863. "//a[contains(@href,'filepi.com')]");
  7864. }
  7865. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7866. {
  7867. addFileHost(
  7868. "tikfile\.com\/\\w+",
  7869. 'btn_download',
  7870. 'File Not Found|file was removed|Reason for deletion',
  7871. 'optional--',
  7872. //'optional--',
  7873. "//a[contains(@href,'tikfile.com')]");
  7874. }
  7875. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7876. {
  7877. addFileHost(
  7878. "cloudsix\.me\/\\w+",
  7879. 'name="method_free"',
  7880. 'File Not Found|width:500px;text-align:left;">',
  7881. 'optional--',
  7882. //'optional--',
  7883. "//a[contains(@href,'cloudsix.me')]");
  7884. }
  7885. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7886. {
  7887. addFileHost(
  7888. "neodrive\.co\/\\w+",
  7889. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7890. 'File not found|/imgs/broken.png',
  7891. 'optional--',
  7892. //'optional--',
  7893. "//a[contains(@href,'neodrive.co')]");
  7894. }
  7895. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7896. {
  7897. addFileHost(
  7898. "chayfile\.com\/\\w+",
  7899. 'name="method_free"',
  7900. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7901. 'optional--',
  7902. //'optional--',
  7903. "//a[contains(@href,'chayfile.com')]");
  7904. }
  7905. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7906. {
  7907. addFileHost(
  7908. "xfileload\.com\/\\w+",
  7909. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7910. '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..|הקובץ שחיפשת לא נמצא.',
  7911. 'optional--',
  7912. //'optional--',
  7913. "//a[contains(@href,'xfileload.com')]");
  7914. }
  7915. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7916. {
  7917. addFileHost(
  7918. "rockfile\.eu\/\\w+",
  7919. 'You have requested:',
  7920. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7921. 'optional--',
  7922. //'optional--',
  7923. "//a[contains(@href,'rockfile.eu')]");
  7924. }
  7925. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7926. {
  7927. addFileHost(
  7928. "24uploading\.com\/\\w+",
  7929. 'File:|Download Speed:',
  7930. '<b>File Not Found</b>|file was removed',
  7931. 'optional--',
  7932. //'optional--',
  7933. "//a[contains(@href,'24uploading.com')]");
  7934. }
  7935. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7936. {
  7937. addFileHost(
  7938. "tusfiles\.net\/\\w+",
  7939. 'i/icon/dll.png"|>Start download<br',
  7940. 'no longer available<|i/ino.png"',
  7941. 'optional--',
  7942. //'optional--',
  7943. "//a[contains(@href,'tusfiles.net')]");
  7944. }
  7945. if (GM_getValue("Check_2drive_dot_net_links", false))
  7946. {
  7947. addFileHost(
  7948. "2drive\.net\/\\w+",
  7949. 'value="Free Download"',
  7950. 'File Not Found',
  7951. 'optional--',
  7952. //'optional--',
  7953. "//a[contains(@href,'2drive.net')]");
  7954. }
  7955. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7956. {
  7957. addFileHost(
  7958. "jumbofile\.net\/\\w+",
  7959. 'button" class="" value="Free',
  7960. 'This File Was Deleted',
  7961. 'optional--',
  7962. //'optional--',
  7963. "//a[contains(@href,'jumbofile.net')]");
  7964. }
  7965. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7966. {
  7967. addFileHost(
  7968. "ozofiles\.com\/\\w+",
  7969. 'button" value="Free',
  7970. 'File Not Found|width:500px;text-align:left;">',
  7971. 'optional--',
  7972. //'optional--',
  7973. "//a[contains(@href,'ozofiles.com')]");
  7974. }
  7975. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7976. {
  7977. addFileHost(
  7978. "loudupload\.net\/\\w+",
  7979. 'value="Get Links',
  7980. 'File Not Found',
  7981. 'optional--',
  7982. //'optional--',
  7983. "//a[contains(@href,'loudupload.net')]");
  7984. }
  7985. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7986. {
  7987. addFileHost(
  7988. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7989. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  7990. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  7991. 'optional--',
  7992. //'optional--',
  7993. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7994. }
  7995. if (GM_getValue("Check_krotix_dot_net_links", false))
  7996. {
  7997. addFileHost(
  7998. "krotix\.net\/\\w+",
  7999. 'btn btn-warning|btn-free',
  8000. 'pageErrors|This File has been removed',
  8001. 'content="Scheduled Maintenance',
  8002. //'optional--',
  8003. "//a[contains(@href,'krotix.net')]");
  8004. }
  8005. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8006. {
  8007. addFileHost(
  8008. "userscloud\.com\/\\w+",
  8009. 'btn_download',
  8010. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8011. 'optional--',
  8012. //'optional--',
  8013. "//a[contains(@href,'userscloud.com')]");
  8014. }
  8015. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8016. {
  8017. addFileHost(
  8018. "kumpulbagi\.com\/\\w+",
  8019. 'class="button download',
  8020. 'internal server error',
  8021. 'optional--',
  8022. //'optional--',
  8023. "//a[contains(@href,'kumpulbagi.com')]");
  8024. }
  8025. if (GM_getValue("Check_faststore_dot_org_links", false))
  8026. {
  8027. addFileHost(
  8028. "faststore\.org\/\\w+",
  8029. 'name="method_free',
  8030. 'File Not Found',
  8031. 'optional--',
  8032. //'optional--',
  8033. "//a[contains(@href,'faststore.org')]");
  8034. }
  8035. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8036. {
  8037. addFileHost(
  8038. "prefiles\.com\/\\w+",
  8039. 'id="method_free',
  8040. 'File not Found',
  8041. 'optional--',
  8042. //'optional--',
  8043. "//a[contains(@href,'prefiles.com')]");
  8044. }
  8045. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8046. {
  8047. addFileHost(
  8048. "doraupload\.com\/\\w+",
  8049. 'btn_download',
  8050. 'class="error-code|Could Not Be Found',
  8051. 'optional--',
  8052. //'optional--',
  8053. "//a[contains(@href,'doraupload.com')]");
  8054. }
  8055. if (GM_getValue("Check_openload_dot_io_links", false))
  8056. {
  8057. addFileHost(
  8058. "openload\.io\/\\w+",
  8059. 'btn btn-primary|class="count">',
  8060. 'class="jumbotron">|We are sorry',
  8061. 'optional--',
  8062. //'optional--',
  8063. "//a[contains(@href,'openload.io')]");
  8064. }
  8065. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8066. {
  8067. addFileHost(
  8068. "uploads\.xxx\/\\w+",
  8069. 'downoadForFree',
  8070. 'File not found',
  8071. 'optional--',
  8072. //'optional--',
  8073. "//a[contains(@href,'uploads.xxx')]");
  8074. }
  8075. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8076. {
  8077. addFileHost(
  8078. "zxcfiles\.com\/\\w+",
  8079. 'class="downloadbtn',
  8080. 'File Not Found',
  8081. 'optional--',
  8082. //'optional--',
  8083. "//a[contains(@href,'zxcfiles.com')]");
  8084. }
  8085. if (GM_getValue("Check_up07_dot_net_links", false))
  8086. {
  8087. addFileHost(
  8088. "up07\.net\/\\w+",
  8089. 'name="method_free',
  8090. 'File Not Found',
  8091. 'optional--',
  8092. //'optional--',
  8093. "//a[contains(@href,'up07.net')]");
  8094. }
  8095. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8096. {
  8097. addFileHost(
  8098. "fileupload\.pw\/\\w+",
  8099. 'value="Free"',
  8100. 'File Not Found',
  8101. 'optional--',
  8102. //'optional--',
  8103. "//a[contains(@href,'fileupload.pw')]");
  8104. }
  8105. if (GM_getValue("Check_4upld_dot_com_links", false))
  8106. {
  8107. addFileHost(
  8108. "4upld\.com\/\\w+",
  8109. 'alt="Download Now"|content="Download file">|btn-free-element',
  8110. '<title>Error|content="error|File not found',
  8111. 'optional--',
  8112. //'optional--',
  8113. "//a[contains(@href,'4upld.com')]");
  8114. }
  8115. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8116. {
  8117. addFileHost(
  8118. "newfileland\.com\/\\w+",
  8119. 'name="method_free',
  8120. 'File Not Found',
  8121. 'optional--',
  8122. //'optional--',
  8123. "//a[contains(@href,'newfileland.com')]");
  8124. }
  8125. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8126. {
  8127. addFileHost(
  8128. "(?:.swoopshare)\\.com\/\\w+",
  8129. 'Click below to start|Klicken Sie nachfolgend|Cliquez ci-après pour|Cliccate qui per iniziare|Klik hierna om het bestand|Haga ahora clic para iniciar la',
  8130. '<input type="file" name="f"',
  8131. 'optional--',
  8132. //'optional--',
  8133. "//a[contains(@href,'swoopshare.com')]"
  8134. );
  8135. }
  8136.  
  8137. }
  8138. //start here
  8139.  
  8140. //hosts with direct download, so they must be requested for headers only
  8141. function initFileHostsHeadersOnly()
  8142. {
  8143. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8144. {
  8145. var host = new Array(5);
  8146. host[0] = linkRegex;
  8147. host[1] = isAliveRegex;
  8148. host[2] = isDeadRegex;
  8149. host[3] = xpathEx;
  8150. host[4] = ispremRegex;
  8151. http_file_hosts_headers_only.push(host);
  8152. }
  8153. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8154. {
  8155. addFileHostHeadersOnly(
  8156. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8157. 'Connection: Keep-Alive',
  8158. 'Content-Length: 3857',
  8159. "//a[contains(@href,'uloziste.com')]"
  8160. )
  8161. }
  8162. if (GM_getValue("Check_adrive_dot_com_links", false))
  8163. {
  8164. addFileHostHeadersOnly(
  8165. "adrive\\.com\/public\/\\w+",
  8166. 'Connection: keep-alive',
  8167. 'orig_ref=deleted',
  8168. "//a[contains(@href,'adrive.com')]"
  8169. )
  8170. }
  8171. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8172. {
  8173. addFileHostHeadersOnly(
  8174. "myupload\\.dk\/showfile\/\\w+",
  8175. 'Expires:',
  8176. 'squeeze1\\s+Vary',
  8177. "//a[contains(@href,'myupload.dk/showfile')]"
  8178. )
  8179. }
  8180. }
  8181. //CustomRules
  8182. //functions add...Host copied here
  8183. function addObsoleteHost(linkRegex, xpathEx)
  8184. {
  8185. var host = new Array(2);
  8186. host[0] = linkRegex;
  8187. host[1] = xpathEx;
  8188. http_file_hosts_obsolete.push(host);
  8189. }
  8190. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8191. {
  8192. var host = new Array(7);
  8193. host[0] = linkRegex;
  8194. host[1] = isAliveRegex;
  8195. host[2] = isDeadRegex;
  8196. host[3] = isUnavaRegex;
  8197. host[4] = xpathEx;
  8198. tryLoop ? host[5] = true : host[5] = false;
  8199. host[6] = ispremRegex;
  8200. http_file_hosts.push(host);
  8201. }
  8202. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8203. {
  8204. var host = new Array(5);
  8205. host[0] = linkRegex;
  8206. host[1] = isAliveRegex;
  8207. host[2] = isDeadRegex;
  8208. host[3] = xpathEx;
  8209. host[4] = ispremRegex;
  8210. http_file_hosts_headers_only.push(host);
  8211. }
  8212. //takes a fully built rules array and adds the rules to WARLC
  8213. function applyCustomRules(customRules)
  8214. {
  8215. if (!customRules) return;
  8216. var rules, r, i;
  8217. rules = customRules.rules;
  8218. for (i = 0 ; i < rules.length ; i++)
  8219. {
  8220. r = rules[i];
  8221. if (r.enabled)
  8222. {
  8223. switch (r.type)
  8224. {
  8225. case 'single':
  8226. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8227. break;
  8228. case 'headers':
  8229. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8230. break;
  8231. case 'obsolete':
  8232. addObsoleteHost(r.urlregex, r.xpath)
  8233. break;
  8234. }
  8235. }
  8236. }
  8237. }
  8238.  
  8239.  
  8240. function initFileHostsCustom()
  8241. {
  8242. if (Custom_rules && Custom_rules_text)
  8243. {
  8244. var msg = '';
  8245. if (newVersion)
  8246. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8247. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8248. msg = '60 or more days have passed since this notification.\n\n';
  8249. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8250. {
  8251. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8252. msg +=
  8253. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8254. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8255. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8256. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8257. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8258. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8259. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8260. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8261. setTimeout(function(){alert(msg)},0);
  8262. }
  8263. var customRules = parseCustomRules(Custom_rules_text);
  8264. if (customRules.warning || customRules.error)
  8265. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8266. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8267. JSON.stringify(customRules.info, null, ' '));
  8268. applyCustomRules(customRules);
  8269. }
  8270. }
  8271. //end of CustomRules processing
  8272.  
  8273.  
  8274.  
  8275. } //end of function start
  8276.  
  8277.  
  8278.  
  8279. function initClipBoardTools()
  8280. {
  8281. unsafeWindow.copyToClipboard = function(text)
  8282. {
  8283. try
  8284. {
  8285. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8286.  
  8287. var str = Components.classes["@mozilla.org/supports-string;1"].
  8288. createInstance(Components.interfaces.nsISupportsString);
  8289. if (!str) return false;
  8290.  
  8291. str.data = text;
  8292.  
  8293. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8294. createInstance(Components.interfaces.nsITransferable);
  8295. if (!trans) return false;
  8296.  
  8297. trans.addDataFlavor("text/unicode");
  8298. trans.setTransferData("text/unicode", str, text.length * 2);
  8299.  
  8300. var clipid = Components.interfaces.nsIClipboard;
  8301. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8302. if (!clip) return false;
  8303.  
  8304. clip.setData(trans, null, clipid.kGlobalClipboard);
  8305. } catch (e) {
  8306. GM_log("Error copyToClipboard : " + e);
  8307. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8308. }
  8309. }
  8310. }
  8311.  
  8312.  
  8313.  
  8314. //CustomRules
  8315.  
  8316. function escapeRegex(str)
  8317. {
  8318. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8319. }
  8320.  
  8321.  
  8322. //called internally from parseCustomRules.
  8323. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8324. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8325. function makeCustomRule(rule)
  8326. {
  8327. function makeMatchRegex(arrmatch)
  8328. {
  8329. return escapeRegex(arrmatch.join('\n'))
  8330. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8331. .replace(/\n/g,'|'); //join together
  8332. }
  8333. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8334. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8335. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8336. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8337. if (rule.baseurl)
  8338. {
  8339. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8340. for (i = 0 ; i < len ; i++)
  8341. {
  8342. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8343. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8344. {
  8345. 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'])
  8346. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8347. }
  8348. else //baseurl in the form: example.com/xxx
  8349. {
  8350. xpath.push(m[0]);
  8351. urlregex.push(escapeRegex(m[0]) + '.');
  8352. }
  8353. }
  8354. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8355. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8356. }
  8357. return rule;
  8358. } //function makeCustomRule
  8359.  
  8360.  
  8361. /*
  8362. Takes a string containing custom link checking rules.
  8363. Returns an object with fields:
  8364. info - contains notes, warnings and errors found during parsing
  8365. rules - the array of custom rules
  8366. note, warning, error - number of each of them found during parsing
  8367. Format of the input string:
  8368. One command per line. Command format: @keyword parameter
  8369. Keywords:
  8370. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8371. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8372. These keywords can be multiple (any of them will work):
  8373. @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...)
  8374. @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+
  8375. @alivelink, @deadlink - example links
  8376. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8377. Lines starting with // and empty lines are ignored.
  8378. Invalid parameters generate errors and those lines are skipped.
  8379. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8380. Example:
  8381. @customrule filehost
  8382. @baseurl filehost.com/download/
  8383. @baseurl filehost2. com net /d?=
  8384. @alivematch id="download">
  8385. @deadmatch File not found
  8386. @deadmatch File deleted
  8387. */
  8388. function parseCustomRules(rulesStr)
  8389. {
  8390. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8391. function addInfo(type, msg, ln){
  8392. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8393. customRules[type]++;
  8394. }
  8395. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8396. if (!lines) return null;
  8397. lines.push('@#customrule _'); //to save the last rule
  8398. var m, linecount = lines.length;
  8399. var keyword, param, constr, rule, err;
  8400. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8401. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8402. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8403. var constraints = {
  8404. 'baseurl': {
  8405. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8406. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8407. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8408. 'alivematch': {
  8409. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8410. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8411. 'deadmatch': {
  8412. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8413. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8414. 'unavamatch': {
  8415. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8416. 'alivelink': {
  8417. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8418. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8419. 'deadlink': {
  8420. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8421. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8422. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8423. };
  8424. for (linenum = 0 ; linenum < linecount ; linenum++)
  8425. {
  8426. //capturing groups: 1 23 4 5 6
  8427. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8428. if (m)
  8429. {
  8430. if (m[1] || !m[2])
  8431. continue; // ignore empty lines and lines starting with //
  8432. keyword = (m[4] || m[2]).toLowerCase();
  8433. param = m[6];
  8434. if (keyword == 'customrule')
  8435. {
  8436. //save the current rule if all required fields are provided
  8437. if (rule)
  8438. {
  8439. err = false;
  8440. $.each(constraints, function(kw, constraint){
  8441. var l, constr = constraint[rule.type];
  8442. if (constr)
  8443. {
  8444. l = rule[kw] ? rule[kw].length : 0;
  8445. if (l < constr.min || l > constr.max)
  8446. {
  8447. 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);
  8448. err = true;
  8449. }
  8450. }
  8451. });
  8452. if (!err)
  8453. customRules.rules.push(makeCustomRule(rule));
  8454. }
  8455. //start a new rule
  8456. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8457. {
  8458. rule = {
  8459. 'enabled': !m[3],
  8460. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8461. 'name': param
  8462. };
  8463. }
  8464. else
  8465. {
  8466. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8467. rule = null;
  8468. }
  8469. }
  8470. else //good line format, but keyword other than customrule
  8471. {
  8472. if (!rule)
  8473. {
  8474. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8475. continue;
  8476. }
  8477. if (constraints[keyword])
  8478. {
  8479. constr = constraints[keyword][rule.type];
  8480. if (constr)
  8481. {
  8482. if (constr.paramRE && !constr.paramRE.test(param))
  8483. {
  8484. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8485. continue;
  8486. }
  8487. }
  8488. else
  8489. {
  8490. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8491. continue;
  8492. }
  8493. }
  8494. //line OK, save
  8495. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8496. }
  8497. } //if (m)
  8498. else
  8499. addInfo('warning', 'Unknown line format. Line skipped.');
  8500. } //for loop
  8501. return customRules;
  8502. } //function parseCustomRules