I'm trying to make a script that alters the dimensions of a game I play.
The game is on Kongregate but I've loaded it in its own tab and it defaults
to 1024x640. My hope was to get a greasemonkey script that would change the
values to absolute with a width and height of 100% and so far this is where
I'm at.
var query = document.querySelector("#content");
if (query) {
query.setAttribute("position", "absolute");
query.setAttribute("width", "100%");
query.setAttribute("height", "100%");
}
and the original content
<iframe id="content" style="position:relative;top:0px;left:0px;border:0px
none;padding:0px;width:1024px;height:640px;"
Keep in mind I have never written in javascript.
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.