Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
How to make tampermonkey interact with website

So I'm looking for advice on where to start on creating a script that can do 2 things, find a specific button on a website and click it, the location of the button can be static or sometimes dynamic so I'm unsure how to make the script find and click, I can do coordinates but not dynamic finding

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you have to make the script to run at document end ! // @run-at document-end

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://*/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.querySelectorAll(".js-vote-up-btn").forEach(button => {button.click()})
    // Your code here...
})();

this will upvote everything in the page (stack overflow)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!