Skip to main content

Forward Gawker sites to their UK counterparts for a better layout

Reading time: 1 minute Suggest an edit

I wrote a (really) simple userscript today that reloads Lifehacker pages under Why did I do this? Because the Lifehacker UK site doesn't have the trendy new (horrendous) AJAXified layout. Maybe using a hosts redirect instead of a userscript is a better way to handle it (since you're still going to see a flash of the site before being redirected with the userscript), but this method is far less intrusive—and less likely to break any pages on the UK site which may rely on resources from the naked domain.

(Edit: I have since modified the script to work with the entire bevy of Gawker media sites—Lifehacker, Gizmodo, Gawker, Kotaku, io9, Jalopnik, Deadspin, and Jezebel.)

Install the script from for Firefox (via the GreaseMonkey extension), Opera, Chrome, or any other browser that supports userscripts.

In the interest of transparency, here is the full source code for the script:

Javascript code:

// ==UserScript==
// @name Lifehacker UK Layout
// @version 1.0
// @namespace
// @description Forwards Gawker sites to their UK counterparts (which don't have the horrendous AJAX layout).
// @include*
// @include*
// @include*
// @include*
// @include*
// @include*
// @include*
// @inlcude*
// ==/UserScript==

(function () {
	var loc =
	var match = loc.exec(window.location);

	if (match) {
		try {
		} catch (ex) {

		window.location.href = match[1] + "uk." + match[2] + ".com" + match[3];