Skip to content

Instantly share code, notes, and snippets.

@kriswebdev
Created August 3, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriswebdev/77c9d83f3c567e16606a to your computer and use it in GitHub Desktop.
Save kriswebdev/77c9d83f3c567e16606a to your computer and use it in GitHub Desktop.
FNAC copier le nom des artistes
// ==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