I am using this :
// ==UserScript== // @name Amazon ASIN Links // @include http://www.amazon.tld/*/dp/* // @include http://www.amazon.tld/*gp/product/* // ==/UserScript== (function(){ function getASIN(href) { var asinMatch; asinMatch = href.match(/\/exec\/obidos\/ASIN\/(\w{10})/i); if (!asinMatch) { asinMatch = href.match(/\/gp\/product\/(\w{10})/i); } if (!asinMatch) { asinMatch = href.match(/\/exec\/obidos\/tg\/detail\/\-\/(\w{10})/i); } if (!asinMatch) { asinMatch = href.match(/\/dp\/(\w{10})/i); } if (!asinMatch) { return null; } return asinMatch[1].toUpperCase(); } var origTitle, origTitleHTML; var asin = getASIN(window.content.location.href); if (!asin) { return; } origTitle = document.evaluate( "//h1[@class='parseasinTitle']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ).singleNodeValue; if (!origTitle) { return; } origTitleHTML = origTitle.innerHTML; origTitle.innerHTML = origTitleHTML + ' ' + asin + ''; })();
when I try to run this in greasekit, it doesn't work. It does work just fine in Firefox with GreaseMonkey, so sad it doesn't work here too. (I need to do multiple simultaneous logins, so Firefox isn't enough)
I am using FluidApp, a Site Specific Browser (SSB), which has built in greasekit support.