avram: (Default)
[personal profile] avram

OK, found a way to keep links from opening new windows in Safari. Here it is:

Step 1: Install GreaseKit. (GreaseKit is the Safari port of Greasemonkey, a Firefox add-on that lets you run arbitrary JavaScript code to modify web pages as they download.)

Step 2: Install _blank Must Die, a userscript that strips the target="_blank" attributes out of link tags.

Step 3: Quit and relaunch Safari.

Step 4: Sigh with relief when Twitter links no longer spawn new windows.

Note for Firefox users: That userscript in Step 2 ought to work for you as well, but you don’t need to bother, since you’ve got some useful features baked right into your browser, no add-ons required.

Microsoft Internet Explorer users, I dunno. If you guys cared about your web experience, you wouldn’t be using MSIE.

Update: Just discovered that the GreaseKit _blank Must Die hack will mess up Google Calendar. The fix is to disable the hack for Google, like so:

  1. In Safari, from the GreaseKit menu, choose “Manage Scripts…”
  2. In the Manage Scripts dialog, select “_blank Must Die” from the list on the left of the box. (Don’t turn the check-box off, just click the name “_blank Must Die” to select it.)
  3. See the “Exclude” box? Click the “Add” button next to it.
  4. In that new line that was just created in the Exclude box, type:
    *.google.com/*
  5. Close the Manage Scripts box. Maybe you need to quit and restart Safari, too.

(no subject)

Date: 2009-05-07 12:25 pm (UTC)
From: [identity profile] mister-wolf.livejournal.com
What, so people don't like target=_blank? I guess I can just ctrl-click, but I'm not always done with the page I was reading when I click a link

(no subject)

Date: 2009-05-07 02:22 pm (UTC)
ckd: (cpu)
From: [personal profile] ckd
I hate it. If I want to open a link in a new window or tab, I'll do it. I can just middle-click in most browsers, so it's not even like it's any more work.

(no subject)

Date: 2009-05-07 04:58 pm (UTC)
redbird: closeup of me drinking tea, in a friend's kitchen (Default)
From: [personal profile] redbird
That's right, people don't like it. Especially early in the morning, I don't like discovering that "back" doesn't work and I need to close the new tab by hand, or use the mouse to get back where I was.

(no subject)

Date: 2009-05-07 05:23 pm (UTC)
From: [identity profile] mcroft.livejournal.com
... I'd like this, but almost every instance I know of where someone has had their system scrod by an Apple System update, the culprit has been SIMBL, or something installed via SIMBL.

(no subject)

Date: 2009-05-08 03:54 am (UTC)
From: [identity profile] stormsweeper.livejournal.com
If you're not on a too small screen and want to avoid extensions, you can click and drag the link into the location bar.

(no subject)

Date: 2009-05-08 03:54 am (UTC)
From: [identity profile] stormsweeper.livejournal.com
too large screen, I mean.

unable to install GreaseKit

Date: 2009-12-14 07:00 am (UTC)
From: (Anonymous)
I followed the steps to install GreaseKit as noted in 'http://8-p.info/greasekit/'. But on restarting Safari, I don't see the GreaseKit menu added.
I verified that SIMBL installation did create the 'SIMBL.bundle' file under'/Library/InputManagers/SIMBL/'.
Stuck here. Any help appreciated.

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags