Sleazy Fork is available in English.

百度云不限速下载,就是加速(封存,已失效)

无需关注公众号无需付费,注意,本人已经捐款11元于greasy fork,无需广告

  1. // ==UserScript==
  2. // @name 百度云不限速下载,就是加速(封存,已失效)
  3. // @namespace 1
  4. // @version 2.3
  5. // @description 无需关注公众号无需付费,注意,本人已经捐款11元于greasy fork,无需广告
  6. // @match *://*/*
  7. // @grant GM_xmlhttpRequest
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. // 翻译英文为中文
  12. function translateEnglishToChinese(text) {
  13. // 在这里实现翻译逻辑,可以使用翻译API或其他方式进行翻译
  14. // 返回翻译后的文本
  15. return "翻译结果:" + text;
  16. }
  17.  
  18. // 禁止访问某个网站
  19. function blockWebsite(website) {
  20. if (window.location.hostname === website) {
  21. window.location.href = "about:blank";
  22. }
  23. }
  24.  
  25. // 添加可拖动按钮并实现跳转功能
  26. function addDraggableButton(redirectUrl) {
  27. const button = document.createElement("button");
  28. button.innerHTML = "百度云解析";
  29. button.style.position = "fixed";
  30. button.style.top = "10px";
  31. button.style.left = "10px";
  32. button.style.zIndex = "9999";
  33. button.style.cursor = "move";
  34. document.body.appendChild(button);
  35.  
  36. let isDragging = false;
  37. let offsetX = 0;
  38. let offsetY = 0;
  39.  
  40. button.addEventListener("mousedown", (e) => {
  41. isDragging = true;
  42. offsetX = e.clientX - button.getBoundingClientRect().left;
  43. offsetY = e.clientY - button.getBoundingClientRect().top;
  44. });
  45.  
  46. button.addEventListener("mousemove", (e) => {
  47. if (isDragging) {
  48. button.style.left = e.clientX - offsetX + "px";
  49. button.style.top = e.clientY - offsetY + "px";
  50. }
  51. });
  52.  
  53. button.addEventListener("mouseup", () => {
  54. isDragging = false;
  55. });
  56.  
  57. button.addEventListener("click", () => {
  58. window.location.href = redirectUrl;
  59. });
  60. }
  61.  
  62. // 主逻辑
  63. (function() {
  64. // 翻译英文为中文
  65. const englishText = "Hello, world!";
  66. const translatedText = translateEnglishToChinese(englishText);
  67. console.log(translatedText);
  68.  
  69. // 禁止访问某个网站
  70. const blockedWebsite = "example.com";
  71. blockWebsite(blockedWebsite);
  72.  
  73. // 添加可拖动按钮并实现跳转功能
  74. const redirectUrl = "http://www.takatorury.top/";
  75. addDraggableButton(redirectUrl);
  76. })();