there are a couple ways to achieve this.
the easiest: will probably be to create a snippet in the web developer tools, and run it from there.
Another manner would be to create a google extension (with ‘declarativeContent’ and ‘activeTab’ permissions) that can inject content script or execute script on a page.
you can find more information on developing chrome extensions and background page events here: https://developer.chrome.com/extensions/background_pages
0
solved Javascript Console Commands Not Working After Ajax Sending Back in Page