Skip to content

Instantly share code, notes, and snippets.

@miya2000
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya2000/9850930 to your computer and use it in GitHub Desktop.
Save miya2000/9850930 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Amanzon immersiveView for Opera10.10
// @include http://www.amazon.co.jp/exec/obidos/ASIN/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
if (e.element.src.indexOf('immersiveView') >= 0) {
e.element.text = e.element.text.replace('jQuery("<img>").attr("src",currentDetailImageUrl);', 'jQuery("<img>").load(function(){}).attr("src",currentDetailImageUrl)');
}
}, false);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment