Feed on
Posts
Comments

Browser Bookmarks Bar Extras

I recently stumbled upon another blog (link now lost), where the author described a method of moving/resizing their browser window by the use of Java script. In addition, as space is limited in bookmarks bar, link text was substituted with a bullet symbol (usually created by Option + 8 keystroke combination).

Safari Browser Demo tn image As I have a wide screen monitor display, this idea has been further developed, so that options are available to move/resize the browser window to the left, centre or right of screen. Other Java scripts have also been incorporated to perform various tasks, with symbols assigned to represent these by editing the Bookmark name field text. My example demonstrates this in the Mac Safari browser, but I believe these scripts would work in other browsers too.

In the screenshot (click on above thumbnail image), the three bullet symbols move/resize the browser window to different locations on the screen. Using the left and right ‘bullet’ scripts in combination, allows me to have two windows displayed side by side, whilst the central script displays a wider window. These are editable as follows;

self.resizeTo(*the window width required*,…). The browser window will resize to the maximum available height.

self.moveTo(*pixel x,y coordinates for the top left corner of the browser window*).

Using the Safari browser, I found I needed to change the order of the resize and move commands for the right of screen move. Left, centre and right scripts are currently as follows;

javascript:self.moveTo(0,0);self.resizeTo(800,screen.availHeight);

javascript:self.moveTo(350,0);self.resizeTo(1000,screen.availHeight);

javascript:self.resizeTo(800,screen.availHeight);self.moveTo(800,0);

Other, occasionally useful scripts were added to highlight specific text on a web page, zap images (remove all images from a page), zap plug-ins (remove all embedded content) and create a Tiny URL (to subsequently link back to the current page).
In Safari, you can use the Edit menu> Special Characters to assign symbols to represent the Java Script bookmarklets.

brush

Comments are closed.

Trackback URI |