Skip to content

Make Tampermonkey functions available in the console

You can make functions defined in Tampermonkey userscripts available in the console (or other userscripts). By default userscripts run in their own scope.

window.functionName = function() {
  console.log("I'm public!");


Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.