Related from last week "Detect when your installed Chrome extensions have changed owners" <a href="https://news.ycombinator.com/item?id=39620060">https://news.ycombinator.com/item?id=39620060</a> (291 comments) Yes, I know the discussion is also linked in the documentation of the tool.
It's strange that addons have so much unsandboxed power. I think browser manufacturers are not very keen on letting users customize their browsing experience. Otherwise they would give them finer control over what addons can do.<p>Fortunately, most customizations can be done via bookmarklets.<p>Benefits of bookmarklets:<p>- Easy to edit<p>- Inactive until clicked<p>- Work in all browsers<p>- Work on mobile<p>- Integrate nicely into the UI. You can move them around, put them into any bookmark folder, assign shortcuts.<p>I wrote this bookmarlet editor which makes it easy to convert between clean code and a bookmarklet:<p><a href="https://www.gibney.org/bookmarklet_editor" rel="nofollow">https://www.gibney.org/bookmarklet_editor</a><p>Here is one that I use to read HN:<p><pre><code> if (!location.href.match('ycom'))
location.href='https://news.ycombinator.com';
doTheMagic = function() {
if (typeof e!=='undefined')
e.style.background='#c0c0c0';
e=Array.from(document.querySelectorAll('.age a:not(.seen)')).sort().at(-1);e.style.background='#ff0';
e.classList.add('seen');
e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});
}
doTheMagic();
if (typeof theMagicIsActive=='undefined') {
document.addEventListener("keydown", function(evnt) {
if (evnt.key === "n") doTheMagic();
});
theMagicIsActive = true;
}
</code></pre>
When clicked and HN is not already opened, it opens HN. When on HN, it jumps to the next newest story. Or comment - it also works in the threads. After jumping to the newest story, clicking it again jumps to the next newest story. Instead of clicking it, pressing "n" also works.<p>Also works in the comments view of a profile. So when you want to see if someone replied to your comments, you click on "comments" in your profile and then on the bookmarklet to jump to the newest reply.
I noticed about myself that in recent years I am becoming increasingly paranoid when it comes to addons and avoid installing any but the most popular/trusted, not just for Firefox, but all applications I use. If there is an addon that does something I want and doesn't fit my criteria for trust, I either write my own private clone, adjust my habits not not need it or (the most frequent outcome) just suck it up.
On the Chrome extension, the top HN comment was pointing out that it <i>doesn't</i> show change in owners, but change in the owner's key, which makes it susceptible to false positives and false negatives. Does the Firefox version work any more reliably?
I like the idea of this and I'll probably use it. But what I really want to know is <i>when</i> my extensions are updated. Some extensions will open an information page when this happens, but I want a browser setting to let me know when any extension updates.<p>I know there is a setting to not auto-update on an case-by-case basis, as browsers auto-update extensions by default as a security measure. In that case, an alert that there are updates would be welcome.<p>Any solution to this, or am I missing a setting somewhere? (On Firefox or Chrome)
I now disabled for all extensions the automatic updates. All extensions are working as expected so I will only update one of them in case of problems. In which case I also (mental note) will check the ownership.<p>Can an extension see what other extensions are installed and their versions? Can your extension maybe show when one of them is updated? Can also be a way to keep 'manually' an eye on changes?
Thank you for this! I read about the chrome extension[0] and was hoping something like this would come to FF. I have already installed this.<p>[0] <a href="https://news.ycombinator.com/item?id=39620060">https://news.ycombinator.com/item?id=39620060</a>
Trying to show us something in this fork?<p>A lot of discussion on the main one earlier: <a href="https://news.ycombinator.com/item?id=39620060">https://news.ycombinator.com/item?id=39620060</a>