serena_knight Posted April 11, 2022 Posted April 11, 2022 can i use a autoit script to unblock blocked text on a chrome web page so i can select it
serena_knight Posted April 12, 2022 Author Posted April 12, 2022 i found this on the internet...how can it be translated into autoit code The easiest way to remove that text selection block would be through a user script like the following that overrides the setting: // ==UserScript== // @name Force Select // @version 1.0 // @description Stop sites from disabling selection of text // @author You // @match *://*/* // @grant none // ==/UserScript== (function() { 'use strict'; let style = document.createElement('style'); style.innerHTML = '*{ user-select: auto !important; }'; document.body.appendChild(style); })();
Danp2 Posted April 12, 2022 Posted April 12, 2022 You would likely need to use Webdriver or UIAutomation to accomplish this. P.S. Can you tell us some websites where this is needed? Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now