0

First of all I almost know nothing about programming. I want to rotate any picture that people shared. Tried the bookmark which is mentioned in this answer. It only rotates 90 degrees. Then doesn’t work again

javascript:(function(){for(i=0;i<document.images.length;i++)document.images[i].style.webkitTransform='rotate(90deg)';})()

How can we manupulate this which it makes 90 degree rotate everytime I run?

I guess a possible solution get images rotation degree then check if it is 0 degree or 90 degree.

A second solution might be to keep a variable. i.e. var rotated=true

Is this possible? Or do you know any Chrome extention which does accomplishes a similar task?

emmett
  • 101
  • In the same thread you linked to there is [another answer](http://superuser.com/a/563898/167207) that mentions the Chrome extension [IMG Rotate](https://chrome.google.com/webstore/detail/img-rotate/jcoonajankpbolkgbipphpmbhefkengn?hl=en). “IMG Rotate is a simple Chrome extension that allows the user to rotate images and other HTML elements (Clockwise and Counter Clockwise 90 deg at a time) as well as flipping elements Upside down and Upright.” – Giacomo1968 Oct 10 '15 at 01:19
  • I have tried GooEdit and img rotate . they dont work – emmett Oct 10 '15 at 01:20
  • filip this and img rotate do the rotation to other images except facebook images. I think we should modify this code – emmett Oct 10 '15 at 01:26
  • 2
    **“I think we should modify this code.”** Sure thing! Maybe someone will come along and just recode this from scratch to make it fit your needs, but why? And for what incentive? This site is not a coding service. – Giacomo1968 Oct 10 '15 at 01:41

0 Answers0