Hacking Firefox with Javascript: popups, min display
Posted: Mon 06 Jul 2009, 06:54
Hi I was bored so I started playing around with javascript, And figured that small screen users like eeepc might like something like this.
Basically you open geany and copy this code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<a href="javascript:window.open('http://www.google.com','google','width=600,height=425,scrollbars=yes')">click here</a>
<html>
<head>
<title></title>
</head>
<body></body>
</html>
then save it as anything like browser.html
then rightclick on browser html and select open with defaultbrowser, firefox will open and it will say 'click here'
and then you'll have a really small limited screen to go surfing on.
I made the popup window default in size to 600X425 so it should fit just about any screen.
If you don't want scrollbars just remove it from the code, plus if you want to add extra features like
,menubar=yes
that will give you file, edit, view, history, bookmarts, tools, help
,toolbar=yes
That will give you the navigation, toolbars but if you right click on a page, you have some basic nav functions, so you probably could do without them.
I figured that something like this could be handy for someone,lol Well Firefox does work better than dillo etc. Anyways have fun with it, always use a common in front of the code like how I displayed the examples, and no comma on the very end.
ttuuxxx
Ps feel free to add your Firefox Gui hacks here also.
Basically you open geany and copy this code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<a href="javascript:window.open('http://www.google.com','google','width=600,height=425,scrollbars=yes')">click here</a>
<html>
<head>
<title></title>
</head>
<body></body>
</html>
then save it as anything like browser.html
then rightclick on browser html and select open with defaultbrowser, firefox will open and it will say 'click here'
and then you'll have a really small limited screen to go surfing on.
I made the popup window default in size to 600X425 so it should fit just about any screen.
If you don't want scrollbars just remove it from the code, plus if you want to add extra features like
,menubar=yes
that will give you file, edit, view, history, bookmarts, tools, help
,toolbar=yes
That will give you the navigation, toolbars but if you right click on a page, you have some basic nav functions, so you probably could do without them.
I figured that something like this could be handy for someone,lol Well Firefox does work better than dillo etc. Anyways have fun with it, always use a common in front of the code like how I displayed the examples, and no comma on the very end.
ttuuxxx
Ps feel free to add your Firefox Gui hacks here also.