pg_pin

By Tobu Last update May 17, 2008 — Installed 59 times.
// ==UserScript==
// @name           pg_pin
// @description    Pin PostgreSQL docs to the current version with comments
// @include        http://www.postgresql.org/docs/*/*/*
// @exclude        http://www.postgresql.org/docs/current/interactive/*
// ==/UserScript==

(function(){

var p = document.location.pathname.split('/')
	.filter(function(x) { return x != ''; });
p[1] = 'current';
p[2] = 'interactive';
document.location.pathname = p.join('/');

})();