top | item 46853824

(no title)

yakshaving_jgt | 27 days ago

Have you tried enabling Reader Mode in your browser?

discuss

order

bmacho|27 days ago

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.