dhruvtv / copylinkaddress

Chrome extension to copy link address using keyboard.
https://chrome.google.com/webstore/detail/copy-link-address/kdejdkdjdoabfihpcjmgjebcpfbhepmh
47 stars 9 forks source link

Some web pages jump around when hovering links #6

Open RudeySH opened 7 years ago

RudeySH commented 7 years ago

On most sites this extension works fine, but occasionally I come across a page that jumps around with this extension enabled. The best example I currently know of is this page:

https://completionist.me/profile/1b7c0508-556e-45e2-8bee-b9f7f76f1d02

It seems this <span> element causes issues with scrollbars...

<span id="copylAddress" style="display: inline-block; position: absolute; left: -9999em;"></span>

I suspect left: -9999em; is the culprit. Why do you need this hack? Can't you just use display: none;?

vallamost commented 7 years ago

Hey I modified the code to display run-in and it appears to have fixed your jumping issue from my testing. Display none wasn't working reliably.

Here's my fork: https://github.com/isseiler/copylinkaddress

@rlenders

I also put in a pull request to merge this into dhruvtv's main branch

https://github.com/dhruvtv/copylinkaddress/pull/7