Skip to content

CodeYosemite/md-opennewtab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

MD - Open in a new tab

Hello there! Today I will teach you how to make your README.md hyperlinks open in a new tab, it has been very hard to figure this out. This is the only method out there.
This project is open-source, so fork and do whatever you want! I just want to let you know, this does not work on Safari due to the security of the browser, this requires pop-ups to be enabled!. Don't forget JavaScript to be enabled too!

First the link for this is https://attatechykid.github.io/md-opennewtab/. Now we need to add a ? to identify a JavaScript argument, then, link= and add the link you want to open in a new tab. Together, that would be the link that would open in a new tab. Now the original link is the link it will redirect back to after opening the link in a new tab, you will need to add a & in the URL and then a current= which is the current link that you clicked the hyperlink from. This will result with: https://attatechykid.github.io/md-opennewtab/?link=https://attatechykid.github.io/&current=https://github.com/AttaTechyKid. It may look very confusing so here is a better example: https://attatechykid.github.io/AttaTechyKid/md-opennewtab/?link=NEW_LINK_HERE&current=CURRENT_LINK. Replace NEWLINK_HERE with the link that you want to open in a new tab, and replace CURRENT_LINK with the link that the hyperlink was clicked from.

If you want to report a bug or give a suggestion!: https://forms.gle/BbyHCqu78j1yheei7
That is all you gotta do for this to work! Click Follow on my profile to support me! Thanks for reading and happy using!

About

Open hyperlinks in a new tab with MD coding language. Version 1.0

Resources

Stars

Watchers

Forks

Packages

No packages published