Skip to content

Instantly share code, notes, and snippets.

@abuisman
Created March 11, 2014 17:55
Show Gist options
  • Save abuisman/9491286 to your computer and use it in GitHub Desktop.
Save abuisman/9491286 to your computer and use it in GitHub Desktop.
Dumpert Cinema Bookmarklet
javascript:(function(){var s0=document.createElement('script');s0.setAttribute('src','http://jquery.com/src/jquery-latest.js');document.getElementsByTagName('body')[0].appendChild(s0);item = jQuery('#item');item_wrapper%20=%20jQuery('#item1_wrapper');playarea%20=%20jQuery('#playerarea%20#item,%20#fotostream%20.foto');if(window.dumpertCinema%20===%20undefined%20||%20window.dumpertCinema%20===%20false){%20if(window.dumpertCinema%20===%20undefined){window.dumpertCinemaVars%20=%20{item:%20{height:%20item.css('height'),float:%20item.css('float')},item_wrapper:%20{width:%20item_wrapper.css('width'),height:%20item_wrapper.css('height')},playarea:%20{width:%20playarea.css('width')}};}item.css('height',%20'auto').css('float',%20'none');item_wrapper.css('width',%20'100%').css('height',%20'500px');playarea.css('width',%20'100%');window.dumpertCinema%20=%20true;}%20else%20{item.css('height',%20window.dumpertCinemaVars.item.height).css('float',%20window.dumpertCinemaVars.item.float);item_wrapper.css('width',%20window.dumpertCinemaVars.item_wrapper.width).css('height',%20window.dumpertCinemaVars.item_wrapper.height);playarea.css('width',%20window.dumpertCinemaVars.playarea.width);window.dumpertCinema%20=%20false;}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment