open-in-full-page

Open in full page

As of 2025-05-13. See the latest version.

// ==UserScript==
// @name         open-in-full-page
// @namespace    http://tampermonkey.net/
// @version      0.0.4
// @description  Open in full page
// @author       You
// @license       MIT
// @match        https://gitpd.paodingai.com/cheftin/*/issues*
// @grant        GM_addStyle
// @grant        unsafeWindow
// ==/UserScript==

(function () {
  "use strict";

  // 监听键盘事件,如果按下ctrl+j ,就打印当前页面的url
  document.addEventListener("keydown", function (event) {
    if (event.metaKey && event.key === "j") {
      const link = document.querySelector('.work-item-drawer-link-button');
      if (link) {
        link.click();
      }
    }
  });
})();