FileCR Assistant Bypass (Improved)

An improved version of lem6ns's script that made fast download work.

当前为 2023-11-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name FileCR Assistant Bypass (Improved)
  3. // @namespace xiakele
  4. // @version 1.0
  5. // @description An improved version of lem6ns's script that made fast download work.
  6. // @author xiakele
  7. // @license Unlicense
  8. // @match *://filecr.com/*
  9. // @icon https://filecr.com/favicon.png
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. let reloading = false;
  15. const versionInfo={
  16. "id": "ddgilliopjknmglnpkegbjpoilgachlm",
  17. "version": "9.9.9"
  18. };
  19.  
  20. if (!document.cookie.includes("extensionIsInstalled")) {
  21. document.cookie = "extensionIsInstalled=1;";
  22. }
  23. window.addEventListener(
  24. "message",
  25. (event) => {
  26. const data={
  27. direction: 'from-content-script',
  28. responseFor: event.data.id,
  29. type: 'response'
  30. };
  31. if(event.data.action==="app.info"){
  32. console.log("Caught!");
  33. data.data=versionInfo;
  34. window.postMessage(data);
  35. }else if(event.data.action==="downloads.extractLink"){
  36. console.log("Caught again!");
  37. data.data=event.data.data.url;
  38. window.postMessage(data);
  39. }
  40. }
  41. );
  42. setInterval(() => {
  43. if (document.querySelector(".e-404") && !reloading) {
  44. reloading = true;
  45. location.reload();
  46. }
  47. }, 100)
  48. })();

QingJ © 2025

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