4 ms·
Several years ago, I was sick of hitting pay/signup walls for sites I already knew I was never going to join but kept clicking because I either didn't know wher
by kgwxd 5y ago
Several years ago, I was sick of hitting pay/signup walls for sites I already knew I was never going to join but kept clicking because I either didn't know where the link was going or I just forgot that site was walled off. I made an FF add-on that applies a specified style to any elements with attributes matching a given regular expression. It can do text content matching too but, as it's currently programmed, it tends to apply to an element too far up the tree.
It was intended for personal use but, if anyone is interested, it's a public github repo and, because Mozilla requires an add-on to be registered to be usable in any practical sense, it is up on the add-on site. There's no proper UI, the only interface is through preferences and it's just a textarea where the JSON config goes (example given below the textarea).
Source: https://github.com/7w0/ssure https://github.com/7w0/ssure (the interesting stuff is in https://github.com/7w0/ssure/blob/master/content/content.js https://github.com/7w0/ssure/blob/master/content/content.js)
Add-on: https://addons.mozilla.org/en-US/firefox/addon/ssure/ https://addons.mozilla.org/en-US/firefox/addon/ssure/