ForumsGamesGemcraft CS : fullscreen

5 4870
ori_alon_92
offline
ori_alon_92
7 posts
Peasant

I've got kind of tired of playing inside the site's frame so I made a script that stretches to your screen size and hide everything else in the page (since it stretches to the screen, not the window size you need to fullscreen your browser for this to look good.

here is the script:

javascript: (function(){
var game = jQuery('#gamefilearea > *';
jQuery('body'.append(game);
game.attr({width:window.screen.width, height:window.screen.height});
game.css({position:'absolute', top:0, left:0});
game.find('[width]'.attr('width', window.screen.width);
game.find('[height]'.attr('height', window.screen.height);
jQuery('body > *'.not(game).css('display', 'none';
jQuery('body'.contents().filter(function() {return this.nodeType === 3;}).remove();
})()

to use it make a new bookmark with the script as the URL and click it while on the game's page.

P.S. 1) this will reload the game
2) this is not a hack it just moves/resizes the game element within the page

  • 5 Replies
ori_alon_92
offline
ori_alon_92
7 posts
Peasant

another thing I forgot, when making a bookmark with a script you should start the url with "javascript: " (without the quotes) and then the actual script :P

ori_alon_92
offline
ori_alon_92
7 posts
Peasant

okay.. apparently the forum filter the term "j@v@scr1pt:" therefore the letter replacement so I made a pastebin link, enjoy: [url=http://pastebin.com/14mnJR50]

ori_alon_92
offline
ori_alon_92
7 posts
Peasant

[url=http://pastebin.com/14mnJR50]

Keadius33
offline
Keadius33
8 posts
Peasant

Awesome thank you , i was zooming in 175% for almost fullscreen but this is way better , btw if you zoom in like me you will have to reset zoom to use this~ at first all i saw was the title.

Cinder55
offline
Cinder55
1 posts
Peasant

Nicely Done! Thanks for this! Very useful. No problems at all getting it to work.

Showing 1-5 of 5