linuxdo-hotkeys

来源于Musifei佬的信息

  1. // ==UserScript==
  2. // @name linuxdo-hotkeys
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-10-28.2
  5. // @description 来源于Musifei佬的信息
  6. // @author Kubbo
  7. // @match https://linux.do/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15. function showHotKeys() {
  16. const hotKeys = [
  17. {name: '描述', keys: '快捷键'},
  18. {name: '最新', keys: 'G+L'},
  19. {name: '新', keys: 'G+N'},
  20. {name: '未读', keys: 'G+U'},
  21. {name: '类别', keys: 'G+C'},
  22. {name: '热门', keys: 'G+T'},
  23. {name: '书签', keys: 'G+B'},
  24. {name: '个人资料', keys: 'G+P'},
  25. {name: '消息', keys: 'G+M'},
  26. {name: '草稿', keys: 'G+D'},
  27. ]
  28. const table = document.createElement('table')
  29. table.style.position = 'fixed'
  30. table.style.top = '50%'
  31. table.style.transform = 'translateY(-50%)'
  32. table.style.right = '10px'
  33. table.style.zIndex = '202403101044'
  34. table.style.fontSize = '14px'
  35. table.style.color = 'var(--primary)'
  36. table.style.borderRadius = '4px'
  37. hotKeys.forEach(key => {
  38. const tr = document.createElement('tr')
  39. const td1 = document.createElement('td')
  40. const td2 = document.createElement('td')
  41. td1.style.padding = '4px 10px'
  42. td1.innerText = key.name
  43. td2.innerText = key.keys
  44. tr.appendChild(td1)
  45. tr.appendChild(td2)
  46. table.appendChild(tr)
  47. })
  48. document.body.appendChild(table)
  49. }
  50.  
  51. showHotKeys()
  52. })();

QingJ © 2025

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