Last active
March 21, 2022 01:00
-
-
Save dimitropoulos/9442be09b9c93ce62fcd5bc7309d9fa5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 DisplaySpecifications user-select | |
// @version 0.1 | |
// @author Dimitri Mitropoulos | |
// @match https://www.displayspecifications.com/* | |
// @grant none | |
// ==/UserScript== | |
(() => { | |
const addGlobalStyle = css => { | |
const head = document.getElementsByTagName('head')[0]; | |
if (!head) { | |
return; | |
} | |
const style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle('body { user-select: auto !important; }'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, I hated displayspecifications.com not allowing selection! Now it works like a charm.