LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2015, 08:54 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Can't select text in web browsers


Go to this web page:

Computer Jobs

Select any job listing. Then try selecting any text using normal mouse selection. I am unable to select any text. I have tried this in several web browsers all with the same result, even when using fresh default profiles.

I would appreciate understanding why.

P.S. This is a technical question and not an endorsement for the web site.
 
Old 04-18-2015, 09:05 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
I haven't clicked the link but would guess they have disabled copy paste with javascript, exhibiting the stupidity and uselessness of even simple DRM.

One easy way around it would be to simply view the page source and copy from there - outside javascript jurisdiction. Or turn off javascript and see if the page still loads. Or take a screenshot if you do not need text. Or...

And I will add that endorsement or not, it still looks and functions like a spam link - especially as you have linked two major keywords instead of simply pasting the link URL. It would be more appropriate to write it out like thewebsite-dot-com instead of linked text. That way interested humans can get there without feeding the search engines a high value link from LQ.

Last edited by astrogeek; 04-18-2015 at 09:09 PM.
 
Old 04-18-2015, 09:39 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,675
Blog Entries: 28

Rep: Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249Reputation: 6249
I was unable to duplicate the problem using Seamonkey v 2.32.1 on Slackware --Current.

I was able to highlight text with the mouse, right-click and copy it, then paste it into a text editor with scripts disabled via NoScript and with scripts enabled.
 
Old 04-19-2015, 06:43 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
interesting.
i _can_ reproduce the problem, with noscript activated or not.
however, i can also look at the page source and see nothing special. i can also select the text in question from there, it's just a normal <p>...</p>.

firefox 37.0.1
 
Old 04-19-2015, 07:29 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
In midori also I can't copy it. But the page loads in lynx browser fine and can copy it.
 
Old 04-19-2015, 12:02 PM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,192

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
In Opera, I can select anything. In Firefox, I can select anything except words in links.
 
Old 04-19-2015, 12:28 PM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Thanks for the responses. I can select text only in Trinity Konqueror and Opera 12.16. Those browsers are old and I don't offer much credence to the results. My testing was with everything both disabled and then enabled: Java, JavaScript, cookies, referrer headers, etc. Firefox, with or without add-ons fails, as do KDE Konqueror, Seamonkey, Midori, Qupzilla, and Epiphany. Different distros too. New fresh profiles makes no difference. Frustrating.
 
Old 04-19-2015, 01:07 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Quote:
Originally Posted by upnort View Post
Frustrating.
Yes, these kinds of stupid web design features only frustrate and inconvenience normal users.

You should write the webmaster and let them know this, "Your website is frustrating for ordinary use because of this stupid feature...".

+++++

Update: I followed the link and find that I can select, copy and paste normally in Firefox 31.4 at this time. The only add-on is uBlock but it seems to make no difference. Maybe we are beta-testers...?

Last edited by astrogeek; 04-19-2015 at 01:20 PM.
 
Old 04-19-2015, 02:46 PM   #9
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Quote:
You should write the webmaster...
At the moment I am more interested in why this happens. Especially now that some folks have shared they do not have the problem. There has to be a technical reason. Thus far all of my trial and error attempts have failed to expose why this happens.
 
Old 04-19-2015, 04:59 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i also have tried with dwb (webkit browser) and it's the same.
the strangest thing is that it also happens when javascript is disabled. what else could be causing this?
in the source, i saw nothing that could explain this.
 
Old 04-19-2015, 05:21 PM   #11
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Suggestion: Are you actually certain it is NOT selecting the text?

Could it be a stylesheet that defines selected same as unselected so that it is simply not visibly hilighted when selected making you think it is not selected?

That would account for non-javascript being the same and some differences in browsers depending on user style settings. Since I do not see the effect I will defer to others to test that hypothesis.

Test by selecting, even though not hilighted, right click copy and paste into text editor - see if it copies.

+++++ Another thought...

It might also be that the site is serving different content/scripts to different users based on some criteria known only to them... if you could compare the source of one that works with one that doesn't you might see something of interest.

Last edited by astrogeek; 04-19-2015 at 05:41 PM. Reason: typos, after thoughts.
 
Old 04-19-2015, 06:32 PM   #12
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Quote:
Are you actually certain it is NOT selecting the text?
Yes, been there done that. Additionally, the clipboard manager confirms nothing is copied.
 
Old 04-19-2015, 07:02 PM   #13
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
(Post modified to remove referenced link, look it up, and include the referenced text inline...)

Here is what one dimwitted, IMO, blogging site webmaster thinks about it...

Quote:
Blah, blah... it is important to protect your blog content from these content
thieves and this is the agenda of this post. We will disable the copy function by
disabling the mouse right click and CTRL+A. We have two options of doing this i.e.,
via a JavaScript Code if you want to disable whole text area of blog or via CSS code
if you share some codes/text in your blog posts and your readers need to copy them.
Then the javascript and CSS examples, here is the CSS only...

Code:
/*----- Disable Text Selection with CSS Code--- TB----*/
body {
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
Quote:
Benefit of using CSS Code rather than JavaScript ?
1) When we use JavaScript code, do you know what does a copy cat do? Simply disables
JavaScript code inside browser and reload the page. Then everything goes into normal
and anyone can copy the whole content. Using CSS code we eliminate this factor as
user can not disable CSS. However, an experienced user can do it simply by
inspecting elements and finding our CSS code snippet then delete it in browser but
this task is far away from newbies. Experienced users rarely do that.

2) CSS codes are far better than JavaScripts as they do not lower the speed of your
blog/website where JavaScript codes consume much time to load and make your blog
load speed very low and overall you lose Visitors=Money. Avoid using JavaScripts.
Let us know where these codes worked for you or you are having problems with these
codes? We will serve you our best. Thank You.
... whatever...

I do not see where such a style is being introduced in your url, but I also am not seeing the effect in my Firefox, so again, they may be using browser detection and sending different style-sheets to different clients.

If you are seeing it in a recent Firefox, use the Tools >> Web Developer >> Inspector to see what styles are being applied to a non-selectable area. My guess is that you will see something like the example above. If so, then we just need to figure out how it is being generated.

Last edited by astrogeek; 04-19-2015 at 08:48 PM. Reason: Removed link, added referenced text
 
Old 04-19-2015, 08:08 PM   #14
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Looks like we are on the same page. I found a similar discussion.

I saved one of the web pages and then looked at the html. I saw the following:

Code:
<style>
* {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

a {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -o-user-select: text;
    user-select: text;
}
</style>
Deleting the first snippet and refreshing the page resulted in me being able to select text.

I tested the same process in some other web browsers and had the same happy result.

I then added the following to my Firefox profile userContent.css:

Code:
@-moz-document domain(roadtechs.com) {

* {
  -webkit-user-select: text !important;
  -khtml-user-select: text !important;
  -moz-user-select: text !important;
  -o-user-select: text !important;
  user-select: text !important;
}

}
I now can select text in the web site.

I have no idea why people want to prevent selecting text. Especially when anybody can open the source code and copy from there, albeit a nuisance.

Thanks for the help everybody.

Last edited by upnort; 04-19-2015 at 08:09 PM.
 
Old 04-19-2015, 08:27 PM   #15
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,306
Blog Entries: 24

Rep: Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259Reputation: 4259
Glad to hear that was it - I had no other ideas if it were not!

It almost had to be CSS as it worked in some browsers with js disabled, although I had not seen it done that way before. But a quick web search found lots of examples.

I want to say that I can see why people do such stupid things, but really I cannot see it.

You write it, you publish it, you put it on the web, you compete for search engine placement, you want lots and lots of eyeballs on it and links to it and referrals from previous visitors, and traffic... But then you put stumbling blocks and hobbles in their path and frustrate them and try to take away the common, ordinary, every-day usefulness of the page content in their browser!

And all so that you can feel self satisfied that it is mine, mine, mine, all mine!

It is beyond stupid, it is a symptom of something much worse.

Anyway, glad you got it figured out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web browsers cannot open the local web servers? shams Linux - Networking 4 08-24-2012 01:14 AM
LXer: Comparison Between Linux Web Browsers - Review of 5 Linux Browsers LXer Syndicated Linux News 0 05-17-2008 02:21 PM
overlapping text in web browsers somae Slackware 5 07-26-2007 04:24 AM
Text Editors in Web Browsers rjlee Linux - Software 3 06-02-2005 04:43 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration