Issue
A school website doesn't let me copy text or select it.
Other websites work fine, but that website doesn't work.
Is there a way to bypass that and copy the text?
The website is https://www.chimica-online.it/download/sistema-internazionale-unita-misura.htm
What I really want
Something like this:
What I tried
I tried to use this CSS:
* {
user-select: auto !important;
}
When creating navbars I sometimes use this CSS property for not allowing text selection:
user-select: none;
But in their case I think they are using it on the entire website. This is why I tried to use*
CSS selector, but is not working.
Solution
just open devtools, and write document.onselectstart = ""
how I find it?
I opened dev tools, and I tried your code, and actually is not work,
so I think that they didn't use the CSS trick,
so I tried to see if they have some scripts.
the script that seems interesting is this one:
they write cleverly this code onstartselect = return false
(so it not your browser bug, but they want to do it)
that it, I used devtools and I overridde it. setting it to ""
empty string
the solution is write document.onselectstart = ""
Answered By - Laaouatni Anas
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.