How would I get the below bookmarklet to open in a new tab instead of loading in place of the current page?
javascript:(function() {window.location=window.location.toString().replace(/.+\.reddit.com/,'https://www.removeddit.com').replace('.compact','');})()
I have been searching for hours but haven't been able to figure out how to implement this, it is not as simple as the examples I have found below. Can anyone offer advice on what I'm doing wrong with my script?
javascript:void(open('http://archive.today/?run=1&url='+encodeURIComponent(document.location)))
javascript:void(window.open('https://web.archive.org/web/*/'+location.href.replace(/\/$/, '')));
or the examples show at this link that I could figure out: Open a URL in a new tab (and not a new window)
Thanks in advance for any help you can offer.