Created
August 3, 2014 14:59
-
-
Save kriswebdev/77c9d83f3c567e16606a to your computer and use it in GitHub Desktop.
FNAC copier le nom des artistes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FNAC copy artist | |
// @namespace https://gist.github.com/kriswebdev | |
// @include http://musique.fnac.com/* | |
// @include https://musique.fnac.com/* | |
// @description Copie le nom de l'artiste au lieu d'ouvrir la page de l'artiste | |
// @require http://code.jquery.com/jquery-2.1.1.js | |
// @grant GM_setClipboard | |
// @version 1.0 | |
// ==/UserScript== | |
function clickHandler(e) { | |
e.preventDefault(); | |
//console.log(e.target,$(e.target).text()); | |
GM_setClipboard($(e.target).text()); | |
} | |
$('a.fi_link').on('click', clickHandler); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment