kriss_feed icon indicating copy to clipboard operation
kriss_feed copied to clipboard

Use Javascript for Auto target="_blank"

Open ghost opened this issue 11 years ago • 4 comments

I noticed using "Auto target='_blank' only applies to the main title link, and not any other links in the content. I added my own script to handle this, and thought this would be a better solution for everyone in future versions. It's a lightweight solution to a bigger problem, imo. Thanks! Here's the script I wrote as an example: gist.github.com/elundmark/7187815

ghost avatar Oct 27 '13 21:10 ghost

I've planned to rewrite most of javascript code, I guess I will add your code too. Thanks

tontof avatar Oct 27 '13 21:10 tontof

Glad to help!

elundmark avatar Oct 27 '13 22:10 elundmark

The script I wrote regarding this has had a few revisions, if you do use it, please get the newest one. One issue it had was it didn't traverse up to find the link if the element clicked wasn't a link or a direct child of a link. That has now been fixed, ex: if the user clicks a > span > img, it finds the link by traversing.

elundmark avatar Nov 25 '13 04:11 elundmark

I did not add it yet, but I will. Thanks for the update info

tontof avatar Nov 25 '13 06:11 tontof