Skip to content

Instantly share code, notes, and snippets.

@porras
Created August 27, 2009 12:45
Show Gist options
  • Save porras/176260 to your computer and use it in GitHub Desktop.
Save porras/176260 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name More Diversion
// @namespace http://github.com/porras
// @description Fixes some Diversion bugs client-side ;-)
// @include http://diversion.r09.railsrumble.com/*
// ==/UserScript==
$ = unsafeWindow.jQuery
$(document).ready(function() {
$("a.author").each(function() {
$(this).attr('href', $(this).siblings("a.document:first").attr('href').replace(/\/\d+$/, ''));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment