Du brauchst nicht auf die Bilddaten selber zuzugreifen, sondern musst nur die entspr. Attribute manipulieren. Statt deines Ansatzes mit mousemove empfehle ich, mouseover und mouseout zu verwenden, dann kannst Du auf eine Neuigkeitsauswertung verzichten.
Dieses funktioniert bei mir im Tampermonkey:
Code
window.addEventListener("load", function () {
var imgs = document.querySelectorAll("img");
for (var i = 0; i < imgs.length; i++) {
var im = imgs[i];
var cstyle = getComputedStyle(im, null);
var width = parseInt(cstyle.getPropertyValue("width"));
var height = parseInt(cstyle.getPropertyValue("height"));
im.setAttribute("data-owidth", width);
im.setAttribute("data-oheight", height);
im.addEventListener("mouseover", function () {
this.width = this.getAttribute("data-owidth") * 1.2;
this.height = this.getAttribute("data-oheight") * 1.2;
});
im.addEventListener("mouseout", function () {
this.width = this.getAttribute("data-owidth");
this.height = this.getAttribute("data-oheight");
});
}
});
Alles anzeigen