benwinding / newsit

Chrome Extension for Hacker News and Reddit Links

Home Page:https://newsit.benwinding.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't open thread in current tab

willlma opened this issue · comments

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:

  • Change it to mode open to allow the HTML to be modified, or
  • Add a Open in current/new tab checkbox in the settings?

Thanks for listening