Last modified: 2011-03-13 18:06:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3213 - Feature request: open external links in a new window (user preference)
Feature request: open external links in a new window (user preference)
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 9811 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-20 20:24 UTC by Eran Roz
Modified: 2011-03-13 18:06 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eran Roz 2005-08-20 20:24:01 UTC
Some people prefere that external links would open in a new window. so it would
be useful to be able to set this in user preferences.
Comment 1 Erik Moeller 2005-08-20 20:59:05 UTC
You can get this behavior by putting this in your User:username/monobook.js:

window.onload=replaceLinks;
function replaceLinks() {
  var x,i; 
  x=document.links; 
  for(i=0;i<x.length;++i) { 
    if(x[i].className=='external text') {
      x[i].target="_blank"; 
    } 
  }
}

(Be sure to clean your cache after changing your user script or it won't take
effect.)
Comment 2 Christian Thiele 2005-08-20 21:23:57 UTC
I hope this will not be included in MediaWiki because this is not html-compatible.
Comment 3 Fred Chess 2005-08-27 13:28:32 UTC
This feature was one I wanted when I first noticed wikipedia in early 2005. I
think it would be an enhancement. 
Comment 4 Brion Vibber 2005-08-27 19:57:28 UTC
You can always open links in a new window from the browser, 
quite easily. There's no particular reason to discriminate 
automatically based on how the link was generated.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-28 22:52:15 UTC

*** This bug has been marked as a duplicate of 1055 ***
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-06 17:15:38 UTC
*** Bug 9811 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links