This addon can remove elements (annoyances) which are inserted dynamically after pageload.
Q: Why do i need this when i have an Adblocker like uBlock Origin or similar.
A: To my knowledge, no blocker as of yet has the feature to continuously monitor for and remove elements
Usage
- Visit the page you want to create a rule for
- write a matching url_regex for the site, for example ^https://www.<domain>.<ext>.* , replace <domain> and <ext> with fitting values.
(can be tested via https://regex101.com/ ) - Next, open the "Tools" -> "Web Developer Tools" menu (shortcut: CTRL+SHIFT+I)
- Use the element picker (at top left corner of the development
tools window) to inspect the element you want to remove - Find a unique identifiert for the elements.
=> This can be difficult but in most cases it will just be a "class" name (for example "promotedlink")
found inside the html element ("div")
More infos about css selectors: https://en.wikipedia.org/wiki/CSS - Add and save the css selector (code) and the url regex (url_regex) as a rule to via the add-ons preference page.
- Open or Reload the page, and the elements should be removed
EdgeCase:
Q: What can i do if there is no unique css identifier for the elements i want removed?
A: Besides using css selectors, you can also use javascript code to identify the page element. Example: ' "return (document.querySelectorAll("div.promotedlink"));")
Notes:
- Permissions:
This add-on tries to use the minimal number of required permissions to successfully fullfill its intended purpose.
If you think this could be improved please let me know by opening an issue and i will try to look into it.
More Details on the individual permission can be found here: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions
- Cost/Payment:
This Add-on is and forever will be subscription and payment free to use for everyone however they like.
If you are feeling generous you can send me a tip via my bitcoin address 35WK2GqZHPutywCdbHKa9BQ52GND3Pd6h4
- Stars/Reviews:
If you found this add-on useful leave some stars or a review so others have an easier time finding it.
- Bugs, Suggestions or Requests:
If you have any issues (for example a site it does not work but you think it should) or have improvement suggestions or a feature request please open an issue at the Support Site
- License: BSD 2-Clause "Simplified" License
- Weekly downloads: 3
- Average daily users: 60
- Rating: 4/5 of 4 ratings
- Created: 2020-07-11 15:26:08
- Last updated: 2023-04-05 22:50:23
- Homepage: https://github.com/igorlogius/persistent-element-remover
- Support site and email
- Orig: https://addons.mozilla.org/en-US/firefox/addon/persistent-element-remover/
- API: {0ed27069-b667-403c-928c-5e4f6f329416}