MetaChat REGISTER   ||   LOGIN   ||   IMAGES ARE OFF   ||   RECENT COMMENTS




artphoto by splunge
artphoto by TheophileEscargot
artphoto by Kronos_to_Earth
artphoto by ethylene

Home

About

Search

Archives

Mecha Wiki

Metachat Eye

Emcee

IRC Channels

IRC FAQ


 RSS


Comment Feed:

RSS

15 August 2014

How to make links open in new tabs. I wrote a greasemonkey script to do this and I post it here for those who would like to use it.[More:]
// ==UserScript==
// @name tabbie
// @description Makes all links open in tabs
// @include http://www.metachat.org/*
// @include http://metachat.org/*
// ==/UserScript==

for (var i=0; link=window.document.links[i++];) {

if (link.host != location.hostname){
link.setAttribute('target','_blank');

}
}
Oh that's awesome. That was kind of you to do, O_R. Just in case Greasemonkey is new to folks, here's some how-to-install instructions.

By the way, I was just thinking of your username recently and how clever it is. I was mulling over maybe another future username and I suddenly "got" it. I'm slow that way. But it's funny.
posted by Miko 15 August | 20:55
My hero! Thanks so much. Cannot wait to try this pony.
posted by bearwife 16 August | 00:31
Hurrah! It works! I used Tampermonkey as I mostly browse on chrome -- perfect!
posted by bearwife 17 August | 18:43
Friday Question from the Book of Questions || Steven Pinker on English grammar style

HOME  ||   REGISTER  ||   LOGIN