Extends the Chrome Developer Tools, adding a new Network Panel in the Developer Tools window with better searching and response previews. https://leviolson.com/posts/chrome-ext-better-network-panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
681 B

const tab_log = function(json_args) {
var args = JSON.parse(unescape(json_args));
console[args[0]].apply(console, Array.prototype.slice.call(args, 1));
}
chrome.runtime.onMessage.addListener(function(request, sender, sendResponseParam) {
if (request.command == 'scrub') {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {command: request.command}, function(response) {
console.log(response);
});
});
} else if (request.command == 'sendToConsole') {
chrome.tabs.executeScript(request.tabId, {
code: "("+ tab_log + ")('" + request.args + "');",
});
}
});