thats the message who appears when i reach some specific xxx blocked website it doesnt happens all the time, in almost every blocked website i get something like this with ( F12 )
Links and clicks are part of page content while the add-on is running in browser content (background).
Adding such a blocker to links means injecting script into every page, and check against the (very large) database. That would create a HUGE overhead (memory and resource usage) and slows down Firefox.
I dont advise that at all. In fact add-ons that affect Firefox performance get rejected for that reason.
It is possible but if you recall form my reviews in the past… troublesome.
1- That allows Google to track users and check if the pages that users visit has porn elements
2- A page with many block-able items will result in an ugly mess
3- Creates extra bandwidth for the users to load Google every time needlessly
4- Addon name and function has to be changed to say, it redirects porn, not stops it as stop means no more loading (not a redirect)
I wouldn’t advise it.
Where does the Chrome error message appear? In the console? It is not an error message. It is info.
That is possible… but will look ugly within a page and causes errors.
It the blocked domain was the tab URL, a message would be OK but that is not the case.
There are images that will be blocked and a personal message in IMG source will cause an error since it is not really a image source.
There are other elements such as objects, iframes, etc within a page that will all cause an error.
It is possible to separate many of them but that requires a lot more processing (and code).
Script/Ad blocker works the same way and it would be annoying to get a notice of some sort every time something is blocked.
Sure… but I dont advise it as it affects the review process without much gain.
Addon with date/version based JS files will get rejected as it creates a lot of needless work comparing it to the previous version.
You will then have to change the background.js code every time with the date.
Date based file names are really ugly. I have a database in my addon and I update it. I know which version it is and for the users, it is the version of the addon version. That is all that is needed.
addon v1.5 … has the DB for version 1.5
addon v1.6 … has the DB for version 1.6
It doesnt need an exact date and user wont see the dburl30122017.dat
Ok so im goign to give a easier name something like dburl1.8 instead of changing the date name everytime for the dat file and manifest
i saw it now i forgot to add “browser_style”: true, for the firefox version next update.
in my website i have a little problem maybe you can help too
Here is a quick code… not tested… just wrote it as an example:
change each menu item from: <li class="nav-item "><a class="nav-link" href="#section-about" style="font-weight:bold;">About</a></li>
to: <li class="nav-item" data-ref="#section-about">About</li>
Add JavaScript
// the ES6 spread not needed for Firefox, added for Chrome and others
for (let li of [...document.querySelectorAll('#probootstrap-navbar li')]) {
li.addEventListener('click', function() {
let node = document.querySelector(this.dataset.ref);
if (node) { node.parentNode.parentNode.scrollTop = node.offsetTop; }
});
}