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

108
Views
Tampermonkey Script targetting canva.com not working

I would add a button before the posting field (a textarea) but it's not working. The button will generate some preset texts.

The script works in console, but not working in tampermonkey userscripts. Can someone help me fix it?

// ==UserScript==
// @name         canva generate
// @namespace    http://canva.com
// @version      0.1
// @description  generate some preset texts in the canva.com textarea
// @author       You
// @match        https://www.canva.com/*
// @icon         https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

let target = document.getElementsByTagName("textarea")[0].parent;
alert(target);
// create new element
const elem = document.createElement('button');

// add text
elem.name = 'generate';

// insert the element before target element
target.insertBefore(elem, target);
})();

Image of canva.com posting in upper right corner:

enter image description here

about 4 years ago · Juan Pablo Isaza
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!