Add a JavaScript button using Greasemonkey or Tampermonkey?
问题 I am fairly new to the world of Greasemonkey and I was wondering how to make a button in JavaScript. Say I wanted to put a button on YouTube or Google for instance? How would I go about calling it or making it? I'm very confused and cant find anything on it. Unless is there someway to interact with the HTML of these sites and add them to Greasemonkey scripts? 回答1: Ok, here's a complete script that adds a live button to SO question pages 1 : // ==UserScript== // @name _Adding a live button //