Advertisement
jcunews

ImageRotate bookmarklet

Jan 14th, 2022
1,738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:/*ImageRotate*/((d, s) => {
  2.   if (/^image/.test(document.contentType)) {
  3.     (s = document.images[0].style).transform = `rotate(${parseInt((s.transform || "rotate(0deg)").match(/\d+/)) + d}deg)`
  4.   } else alert("Not viewing an image.")
  5. })(90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement