Tampery is a browser extension to tamper browser requests in flight. It is programmable, which means you could write your own script to intercept, block, or modify browser requests.
Source code:
https://github.com/pd4d10/tampery
谷歌浏览器、其他Chromium内核的浏览器