upvote
Does not work nice with code blocks. But here's how you can add Javascript Snippets to every webpage via Tampermonkey:

  // ==UserScript==
  // @name         JS Snippets
  // @match        *://*/*
  // @grant        GM_registerMenuCommand
  // ==/UserScript==
  
  GM_registerMenuCommand("Set font to default", () => {
      document.querySelectorAll("body *:not(pre *)").forEach(el => {
          el.style.fontFamily = "nonExistentFont";
      });
  });
you can run them by clicking the Tampermonkey icon and picking the action you want. You can add website dependent snippets by checking the location before you register the menu items, it's dynamic.
reply