Package: mozilla-firefox
Version: 1.0.3-2
Severity: wishlist
Tags: patch
Quoting from author of this hack:
"I've always thought user should be able to choose where to load new documents
from links. I say you as developer can use a cookie and provide that option if
user wants to, but only if user wants to (see my preferences form at the end of
page). A lot of other people think the best option is not letting them think
and open everything in a new window. I hate those situations. What if i want to
stay in my window? Hey, if i like your site i'll be back... Anyway, they insist
in using target _blank. Well, all that's finished. Bye bye target _blank. Wanna
know how? Keep reading..."
This could be added to debian package of firefox easily. It just consists of:
- preloading the greasemonkey extension
(http://greasemonkey.mozdev.org/)
- preinstall a simple user script like this:
**********************BEGIN
// ==UserScript==
// @name killblank
// @namespace http://meddle.dzygn.com
// @description Gets rid of annoying target="_blank" links (damm, i
want to decide my target!)
// @include *
// ==/UserScript==
(function () {
var external = document.links;
for (var k=0; k<external.length; k++){
if (external[k].href) {
external[k].target = "_self";
}
}
})();
*********************END
(improved version from the one in
http://meddle.dzygn.com/v3/js/killblank.user.js)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C)
Versions of packages mozilla-firefox depends on:
ii debianutils 2.13.2 Miscellaneous utilities specific t
ii fontconfig 2.3.1-2 generic font configuration library
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libfontconfig1 2.3.1-2 generic font configuration library
ii libfreetype6 2.1.7-2.4 FreeType 2 font engine, shared lib
ii libgcc1 1:3.4.3-12 GCC support library
ii libglib2.0-0 2.6.4-1 The GLib library of C routines
ii libgtk2.0-0 2.6.4-1 The GTK+ graphical user interface
ii libidl0 0.8.5-1 library for parsing CORBA IDL file
ii libjpeg62 6b-10 The Independent JPEG Group's JPEG
ii libkrb53 1.3.6-3 MIT Kerberos runtime libraries
ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libstdc++5 1:3.3.5-12 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte
ii libxft2 2.1.7-1 FreeType-based font drawing librar
ii libxp6 4.3.0.dfsg.1-12.0.1 X Window System printing extension
ii libxt6 4.3.0.dfsg.1-12.0.1 X Toolkit Intrinsics
ii psmisc 21.6-1 Utilities that use the proc filesy
ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]