luciopaiva / witchcraft

Inject Javascript and CSS right from your file system. Think GreaseMonkey for more advanced users.
https://luciopaiva.com/witchcraft
MIT License
254 stars 18 forks source link

Quick item... code example on your homepage #26

Closed hierozbosch closed 4 years ago

hierozbosch commented 4 years ago

Hey, the code example on your home page appears to have a typo in the JS. Isn't that supposed to be: window.addEventListener("load", () => { });

This is what I copied from the witchcraft homepage that didn't work:

window.addEventListener("load" => () { document.querySelectorAll("img") .forEach(img => img.style.transform = "scaleX(-1)"); });

Thanks for the extension! Looks like it's going to work for highlighting critical incoming emails for me.

luciopaiva commented 4 years ago

Nice catch, @hierozbosch! It's fixed now, thanks for letting me know.