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/alpinejs@3.x.x/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
Uh oh!
There was an error while loading. Please reload this page.
-
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