postgresql-shortcut

try to take over the world!

  1. // ==UserScript==
  2. // @name postgresql-shortcut
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.11
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://www.postgresql.org/docs/10/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. window.onload=function(){
  14. document.addEventListener('keyup',function(e) {
  15. //往后翻页
  16. if(e.keyCode===39) {
  17. var a = document.querySelectorAll('[accesskey="n"]')[0];
  18. if(a) {
  19. window.location.href = a.getAttribute('href');
  20. }
  21. }
  22. if(e.keyCode===37) {
  23. var b = document.querySelectorAll('[accesskey="p"]')[0];
  24. if(b) {
  25. window.location.href = b.getAttribute('href');
  26. }
  27. }
  28. })
  29. }
  30. // Your code here...
  31. })();

QingJ © 2025

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