下载按钮

硕鼠按钮

  1. // ==UserScript==
  2. // @name 下载按钮
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 硕鼠按钮
  6. // @author poi
  7. // @match http://www.flvcd.com/xdown.php?id=*
  8. // @match https://www.bilibili.com/bangumi/*
  9. // @match https://www.bilibili.com/video/*
  10. // @match http://open.163.com/special/*
  11. // @match http://open.163.com/movie/*
  12. // @match https://film.sohu.com/album/*
  13. // @match https://tv.sohu.com/v/*
  14. // @match http://www.le.com/ptv/vplay/*
  15. // @match http://www.acfun.cn/v/ac*
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. (function() {
  20. var url=window.location.href;
  21. var reg=/(http:\/\/www.flvcd.com\/xdown.php\?id=)(\d{1,99})/;
  22. console.log(reg.test(url)+"/n"+url);
  23. if(!reg.test(url)){
  24.  
  25. function loadCssCode(code){
  26. var style = document.createElement('style');
  27. style.type = 'text/css';
  28. style.rel = 'stylesheet';
  29. style.appendChild(document.createTextNode(code));
  30. var head = document.getElementsByTagName('head')[0];
  31. head.appendChild(style);
  32. }
  33. loadCssCode('.ss{background: #E8E9EB;z-index:999;width:100px;height:100px;border:0px;box-shadow:3px 3px 3px #888888; border-radius:50px;position: fixed;top:10px;opacity:0.1;transition-duration:1s;}.ss:hover{transition-duration:0.5s;opacity:1;}.ss:active{background: #6f6f6f;width:95px;height:95px;}');
  34. var newButton = document.createElement("input");
  35. newButton.value="下载";
  36. newButton.className="ss";
  37. newButton.type='button';
  38. newButton.onclick=function (){
  39. window.open('http://www.flvcd.com/parse.php?format=&kw='+window.location.href);
  40. };
  41. document.body.append(newButton);
  42. }else{
  43. setTimeout('window.close();',5000);
  44. };
  45. })();

QingJ © 2025

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