Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming


Welcome to the Personal Development for Smart People Forums, the place for lively, intelligent discussion of all personal growth issues -- physical, mental, financial, social, emotional, spiritual, and more.

You're currently viewing as a guest, which gives you limited read-only access. By joining our free community, you'll be able to post your own messages, access many members-only features, see the new messages posted since your last visit, and of course remove this header message. Registration is fast, simple, and free, so please join today.

If you arrived here from a search engine, you may want to explore the main site first, which includes hundreds of deep and insightful articles on a variety of personal development topics.
Reply
 
Thread Tools Display Modes
Old 11-08-2006, 08:31 AM   #1 (permalink)
Member
 
Join Date: Nov 2006
Posts: 47
tomjen is on a distinguished road
Default Prevent links from opening in new windows (Firefox, Greasemonkey)

I got tired of having links open in new windows, so I developed this Greasemonkey script. Hope your find it usefull:

----cut here----

// ==UserScript==
// @name Window fixer
// @description Prevent opening of links in new windows, since it better options are now possible.
// @include http://www.stevepavlina.com/*
// @include http://stevepavlina.com/*
// ==/UserScript==
var links;
links = document.getElementsByTagName('a');
for(i=0;i<links.length;i++)
{
links[i].setAttribute('target','');
}

----cut here----
tomjen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2006, 08:34 AM   #2 (permalink)
Senior Member
 
Michael Chui's Avatar
 
Join Date: Nov 2006
Location: Seattle, Washington, USA
Posts: 2,174
Michael Chui is on a distinguished road
Default

On my old computer (I haven't installed everything onto this one yet), I had TargetAlert, which would inform me if the link I was hovering over would open a new window. I usually switched over to the scroll button at that point to open up a new tab instead. Firefox 2 seems to do this automatically, though that might be a preference I haven't noticed yet.
__________________
Currently reading: The Science of Fear
Michael Chui is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2006, 01:35 PM   #3 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Illinois
Posts: 149
TechnoGuyRob is on a distinguished road
Send a message via AIM to TechnoGuyRob Send a message via MSN to TechnoGuyRob
Default

The exact same thing can be done in Firefox 2.0 (but I know I had it enabled in Firefox 1.5 as well, don't know the config option) by going to:

Tools -> Options -> Tabs -> open pages in a new tab

Plus, this will open any javascript-generated pop-ups in new tabs as well.
TechnoGuyRob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 by Pavlina LLC