Skip to content

Instantly share code, notes, and snippets.

@mooz
Created September 5, 2010 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mooz/565887 to your computer and use it in GitHub Desktop.
Save mooz/565887 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Debug subscripts with Venkman
// @description Allows you to debug subscripts with Venkman
// @include chrome://venkman/content/venkman.xul
// @author mooz
// @license MIT
// ==/UserScript==
["_getChannelForURL", "loadURLNow", "loadURLAsync"].forEach(function (func) {
if (func in window && !window[func].original) {
let original = window[func];
window[func] = function () {
if (arguments[0].indexOf(" -> ") !== -1)
arguments[0] = arguments[0].split(" -> ")[1];
return original.apply(this, arguments);
};
window[func].original = original;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment