A JavaScript bookmarklet that disables the “href” of “a” tags on webpages so that clicking them doesn’t navigate to external pages. This might be useful when you frequently do double-click copying. Uses document.getElementsByTagName and document.removeAttribute.
for (i = 0; i < document.getElementsByTagName('a').length; i++){
document.getElementsByTagName('a')[i].removeAttribute('href') ;
}