Skip to content

Instantly share code, notes, and snippets.

@dannyroberts
Last active March 2, 2017 21:11
Show Gist options
  • Select an option

  • Save dannyroberts/83cd9bd00f8c396c6b61 to your computer and use it in GitHub Desktop.

Select an option

Save dannyroberts/83cd9bd00f8c396c6b61 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Clean FogBugz URLs
// @version 0.1
// @description Replaces http://manage.dimagi.com/default.asp?123456#1984701 with http://manage.dimagi.com/default.asp?123456
// @author Danny Roberts
// @match http://manage.dimagi.com/default.asp*
// @grant none
// ==/UserScript==
if (/http:\/\/manage.dimagi.com\/default.asp\?\d+#\d+/.exec(window.location.href)) {
history.replaceState("", document.title, window.location.pathname + window.location.search);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment