I am very new to the world of Javascript. I've found some scripts that accomplish what I'm looking to do, but not perfectly, and the scripts don't seem to be maintained. I would like to create my own script in Tampermonkey . I believe the script should be relatively simple, but with my limited knowledge of Javascript, it makes it complicated.
This is the code I've found, but I haven't managed to make it work:
// @name URL Copy When Hover
// @namespace com.atnbueno.url-copy-when-hover
// @include http://www.autohotkey.com/*
// @require http://code.jquery.com/jquery-2.1.1.min.js
// @version 0.1
// @grant GM_setClipboard
// ==/UserScript==
$(document).ready(function() {
$("a").hover(function() {
GM_setClipboard($(this).attr("href"));
});
});
A couple of Chrome Extensions I've found, but are no longer maintained:
This Extension is almost perfect, but there's a global "Ctrl+c" to copy Page URL which I don't want, and this script somehow screws up functionality with Google Sheets.
With this Extension, you can't assign "Ctrl+c" to the functionality of this script and it doesn't work consistently on every link.
Can anyone help?