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 Auto-expand GitLab breadcrumb | |
// @version 0.1 | |
// @description GitLab's breadcrumb always collapses even when it doesn't need to, this fixes that, but it may be fragile... | |
// @author You | |
// @match https://gitlab.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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
function Web3RequestLogger(httpProvider) { | |
let handler = { | |
get(target, propKey, receiver) { | |
const origMethod = Reflect.get(target, propKey, receiver); | |
if (propKey === "send") { | |
return function (...args) { | |
console.log(`Sent JSONRPC Request: ${JSON.stringify(args[0])}`); | |
let responseCallback = function(err, result) { | |
console.log(`Received JSONRPC Response: ${JSON.stringify(result)}`) | |
args[1](err, result) |
OlderNewer