Last active
November 18, 2024 14:30
-
-
Save Eugeny/2ecc265b778f8253ee79b7d48cb67456 to your computer and use it in GitHub Desktop.
utaten.com userscript for selecting & copying lyrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name utaten.com text select and copy | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-11-18 | |
// @author You | |
// @match https://utaten.com/lyric/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=utaten.com | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
setTimeout(() => { | |
const lb = document.querySelector('.lyricBody') | |
const newLB = lb.cloneNode(true) | |
newLB.removeAttribute('onselectstart') | |
newLB.removeAttribute('oncontextmenu') | |
lb.replaceWith(newLB) | |
}, 1000) | |
var sheet = document.createElement('style') | |
sheet.innerHTML = ".rt {user-select: none !important;}"; | |
document.body.appendChild(sheet); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment