debugger_shortcut

debugger_shortcut_desc

当前为 2024-09-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name debugger_shortcut
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description debugger_shortcut_desc
  6. // @author XT
  7. // @match *://*/*
  8. // @grant none
  9. // @license Apache-2.0
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14.  
  15. var statusDiv = document.createElement('div');
  16. statusDiv.style.position = 'fixed';
  17. statusDiv.style.bottom = '10px';
  18. statusDiv.style.right = '10px';
  19. statusDiv.style.backgroundColor = '#333';
  20. statusDiv.style.color = 'white';
  21. statusDiv.style.padding = '10px';
  22. statusDiv.style.zIndex = '10000';
  23. statusDiv.style.borderRadius = '5px';
  24. statusDiv.style.fontFamily = 'Arial, sans-serif';
  25. statusDiv.innerHTML = 'Loaded';
  26. document.body.appendChild(statusDiv);
  27.  
  28. document.addEventListener('keydown', function (event) {
  29. if (event.key === 'F2') {
  30. statusDiv.innerHTML = 'debugger sucessful';
  31. debugger;
  32. }
  33. });
  34.  
  35. // 显示脚本成功运行的信息
  36. console.log("Tampermonkey Loaded");
  37. })();

QingJ © 2025

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