NikeTV

一键复制影评全文

  1. // ==UserScript==
  2. // @name NikeTV
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @author 晚枫QQ237832960
  6. // @description 一键复制影评全文
  7. // @license Creative Commons
  8. // @match https://www.ajeee.com/play/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // z-index:1 防止全屏下显示按钮,
  16.  
  17. var div = document.createElement("a")
  18. div.innerHTML = "解析"
  19. div.style.cssText="color: white;\n" +
  20. " text-decoration: none;\n" +
  21. " width: 150px;\n" +
  22. " height: 40px;\n" +
  23. " line-height: 40px;\n" +
  24. " text-align: center;\n" +
  25. " background: transparent;\n" +
  26. " border: 1px solid #d2691e;\n" +
  27. " font-family: Microsoft soft;\n" +
  28. " border-radius: 3px;\n" +
  29. " color:#ff7f50;\n" +
  30. " position: fixed;\n" +
  31. " top: 50%;\n" +
  32. " z-index:999;\n" +
  33. " left: 13%;\n" +
  34. " cursor: pointer;"
  35. div.setAttribute("href",document.getElementsByTagName('iframe')[2].src,"target","_blank")
  36. div.setAttribute("target","_blank")
  37. document.body.appendChild(div)
  38.  
  39. })();