Replies: 1 comment 2 replies
-
Of course. Use // ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @require https://unpkg.com/[email protected]/dist/cdn.min.js
// @grant none
// ==/UserScript==
// repository name
const el = document.querySelector("main #repository-container-header h2");
console.log(el);
el.insertAdjacentHTML("beforeend", `<span x-data="{ message: 'I ❤️ Alpine' }" x-text="message"></span>`); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Is it possible to include Alpinejs library to handle the DOM and inject elements on it ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions