Reputation: 15465
I'd like to be able to right-click on an element on a web page and get the URL of the nearest anchor.
For example, say I'm looking at online documentation, and I see a paragraph saying something surprising. Then I'd like to be able to right-click on that, choose "copy URL of nearest anchor", go to my IDE, and be able to paste a URL, like "http://docs.somelang.org/1.9/manual.htm#section9" into a code comment.
Currently, I have to do "view source" and hunt around for the nearest element.
Anything which does something reasonably close to this in any major browser would suffice, but my ideal answer would be something which can be added to the right-click menu in Chrome.
Upvotes: 4
Views: 1772
Reputation: 15092
You could write a jQuery script that you run on each page, triggering on clicks.
Hope this helps!
Upvotes: 0