Rotate all loaded images on webpages
// ==UserScript==
// @name JoKes: Rotate Images
// @namespace JoKes
// @description Rotate all loaded images on webpages
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
// @include http://*/*
// @grant none
// @version 0.0.1.20150903131720
// ==/UserScript==
jQuery.fn.rotate = function(degrees) {
$(this).css({'-webkit-transform' : 'rotate('+ degrees +'deg)',
'-moz-transform' : 'rotate('+ degrees +'deg)',
'-ms-transform' : 'rotate('+ degrees +'deg)',
'transform' : 'rotate('+ degrees +'deg)'});
return $(this);
};
$(function() {
setTimeout(function() { $('img').rotate(180) }, 2000);
});