Habrosanitizer is now available for Firefox. He also learned to block hubs.

habrosanitizer says happy new year







At the end of October, after a wave of articles from hype authors, I wrote a small extension for Chrome that allows you to hide unwanted articles from the feed. The extension was received very warmly (+285, 53_000 views and 70+ stars on the github) and I even published it in the Chrome Extension Store. Then there was a poll about the most desirable next feature and the most requested (129 votes) support for Firefox. And now, a month later, the extension was published in Firefox Addons.







Who cares about what kind of rake had to stomp, please, under the cut!







About Firefox



To be honest, FF support was not given to me the first time. Despite the fact that the changes were minimal as a result, at some point I was already thinking about giving up, because everything went wrong.







At first, the test code didn't even want to load in Firefox due to an invalid manifest format. I had to google and try several times, and even the manifest from the official example did not want to work. Then, after Firefox suddenly accepted the files, it naturally refused to launch them, because "the files have not been verified, the signatures have not been made, I will not work." There is a special flag in Google - xpinstall.signatures.required = false



which needs to be set to allow downloading extensions without a signature, but it does not work in either the stable version or the beta. It only helped in Nightly.







, - , Firefox id ( "browser_specific_settings":{"gecko": {"id":"{GUID}"}})



). Chrome , browser_specific_settings



. , .







. Firefox , Chrome — . options



"options_ui": {"page": "options.html", pen_in_tab": true}









, , - . - . , Firefox - , . ( ), es6 , , , . ( ), " " WebPack ( 4 )







, , , src



. , . - .







WebPack- . ( ), .







, 20.12.2020 ( 63 ), 21.12.2020 , . .









Firefox (ledascho) — . . , .







, :









UI , .







, GitHub, , (, , SVG ).







, . - , , . -, , -, . , , .









68 :) . - . 40 , 11 , , , , , .







That's all. I do not plan to add new features yet (this year for sure, I have a vacation soon in which I want to finally bring to mind another pet project about measuring the performance of websites







If you have any suggestions or you have found a bug, write in the comments or in the issues - whoever is more comfortable.







Links:









All with the upcoming holidays, and a good new year!

PS Thanks to Sharon McCutcheon for the Mozilla Corporation KPDV for their logo








All Articles