This question already has answers here:
How to stop user from printing webpages? using javascript or jquery
(11 answers)
Closed 4 years ago.
Is there a way to disable functions like copy, printing full page from a react application rendering in browser.
My usecase: I am building a question bank management tool and do not want user to have ability to copy or print complete questions for later reference.
Also is it possible to programatically decide on what will be printed when user tries to print. (Its ok to print title of the questions)
No you cannot render a page and also prevent a user from seeing it.
Related
This question already has answers here:
How to edit a JavaScript alert box title?
(10 answers)
Where is my iframe in the published web application/sidebar?
(1 answer)
Closed last year.
I'm building a Web App on the Google Apps Script platform
When I summon JavaScript alerts e.g.
window.alert('Thankyou for submitting your details. You will now be taken to the grammar test')
it will give me a message at the top of the alert saying randomString scripts.googleusercontent.com says
This looks messy and unprofessional so I would like to get rid of it before giving to my client
How can I override it?
This question already has answers here:
Can a website detect when you are using Selenium with chromedriver?
(25 answers)
Chrome browser initiated through ChromeDriver gets detected
(2 answers)
Closed 4 years ago.
I am trying to crawl a couple of website pages to use their information and I can only use things like selenium that has chromium to do that
Now I am trying to hide it from the website owners because I don't want to get banned. some people are talking about changing some variable names called cdc_ inside of chromdriver and I can't understand how to do it
Also I am using python for this
EDIT : My problem is that I can't change the variable of cdc_ or any other variables in chrome driver because I don't know how
any method so I can hide the fact that I am using selenium!
Please help me here
Thank you for your time
This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 4 years ago.
I'm installing Intercom (https://www.intercom.com) for customer engagement on my site. With the recommended installation the javascript snippet they gave would have my intercom app_id exposed in the page source.
May not be a big deal, but I was wondering if there was a better way where I could keep that hidden.
May not be a big deal
It isn't.
but I was wondering if there was a better way where I could keep that hidden
You can't.
Intercom need the browser to tell them your ID for their approach to work.
This means you must tell the browser your ID.
The browser is the property of the user and it answers to them.
It is not possible to give the browser information and keep it secret from the user who owns the browser.
This question already has answers here:
How to enable cookies via javascript
(3 answers)
Closed 8 years ago.
Is there any way to enable browser cookies using Javascript? I need to show the user data in the form page which has filled by the user earlier. Please get me some solution to show the data which has already submitted before in the form page.
This cannot be done as it would bring security issues.
This question already has answers here:
How do I copy to the clipboard in JavaScript?
(27 answers)
Closed 10 years ago.
I currently have a JSF webapp and I have an output field that my managed bean sets the value for, and I want to ass a button for the user to copy the output text straight to their clipboard (aka ctrl-c/cmd-c).
I've been doing some research, but I'm a bit confused, some are suggesting this cannot be done.
So my question is...can this be done? And if so, any suggestions on how to implement it?
Thanks!
Cannot be done using javascript alone. You can do it with a flash plugin though. Check out zeroclipboard: http://code.google.com/p/zeroclipboard/