Created
September 5, 2010 09:17
-
-
Save mooz/565887 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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