Estoy tratando de hacer que Tampermonkey cree una alerta cada vez que se hace clic en este botón:
<button id="main-sideline" class="awsui_button_vjswe_108wz_7 awsui_variant-normal_vjswe_108wz_27" type="submit"> <span class="awsui_content_vjswe_108wz_3">Sideline</span> </button>¿Qué podría estar mal aquí por favor:
// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js // @match https://databee.com // @icon https://www.google.com/s2/favicons?domain=amazon.dev // @grant none // ==/UserScript== (function() { 'use strict'; document.getElementById("main-sideline").onclick = function() { alert('clicked'); }; })();