Skip to content

Instantly share code, notes, and snippets.

@ded
Created June 15, 2011 07:27
Show Gist options
  • Save ded/1026641 to your computer and use it in GitHub Desktop.
Save ded/1026641 to your computer and use it in GitHub Desktop.
rtltr bookmarklet
!function () {
var s = document.createElement('script');
s.onload = function () {
document.body.dir = 'rtl';
!function ($) {
var links = $('link[rel="stylesheet"]');
links.forEach(function (link) {
var href = link.href;
link.href = 'http://dustindiaz.com/r2?url=' + href;
});
}(ender.noConflict());
};
s.src = 'http://s3.amazonaws.com/ender-js/jeesh.min.js';
document.body.appendChild(s);
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment