benwinding / newsit

Chrome Extension for Hacker News and Reddit Links
https://newsit.benwinding.com
MIT License
23 stars 1 forks source link

Can't open thread in current tab #17

Open willlma opened 4 months ago

willlma commented 4 months ago

Hi, want to start off by saying I love using this extension.

In an effort to avoid having too many tabs open, I like to open links in the current tab. To that end, I've created a browser extension that runs through the DOM and removes target="_blank" attributes from anchor elements. Unfortunately, because this extension uses a shadowroot in closed mode to render the links, I can't traverse the DOM to modify the elements. Any chance you could either:

Thanks for listening