• Aniki 🌱🌿
    link
    fedilink
    English
    21 year ago

    That’s amazing! Do you have the source anywhere? I’ve always wanted to dabble in simple Firefox plugins

    • @[email protected]
      link
      fedilink
      English
      21 year ago

      Extension: https://addons.mozilla.org/en-US/firefox/addon/ssure/

      Source: https://github.com/7w0/ssure

      Be warned, the UI is just a textarea that takes JSON and involves escaping characters for both JS strings and regular expressions in the same string. regex requires backslashes to escape things like ‘.’ and JS requires backslashes to be doubled to output a single backslash 😬 The example escaped JSON at the bottom of the options screen should be enough to figure out how to add your own domains to the list. The only reason it’s a public plugin is because it’s literally impossible to just run a plugin from a local source without having to do a ton of extra steps every time you start the browser. Also, you’ll occasionally get confused why things don’t seem right on the internet, like when I tried to talk about this plugin and mentioned twitter.com, causing my own comment to look messed up after I posted it, because the plugin was doing exactly what I told it to do :)