Automated User Script Execution
As of v3.8, the Classic browser is now User Programmable which should not be confused with 3rd Party Programmable.
The latter is what we DON’T want to be happening to our browser because we don’t trust that strangers will do the right thing with their so-called “add-ons” but there’s no reason why us users shouldn't be able to perform some script automation ourselves to tame websites even further and make life more pleasant!
For this reason v3.8 now introduces powerful automated script execution but don’t let big words scare you because it’s all done in a way that even a 12 year old can utilize it!
So let’s press on with a few simple examples to demonstrate the usefulness of this feature and how simple it is to set up…
Example #1:
Let’s suppose you want all text, password and email fields to stand out on every website you visit so you want to color them white on red! Here’s how to do it…
In the browser Options look for “User Script Macros” and locate an empty slot.
Step #1: Check the “automated script” check-box.
Step #2: In the "Query Selector" field box paste “input[type="text"],input[type="email"],input[type="password"]” to indicate what we are targeting.
Step #3: In the "JavaScript" field box paste “e.style.background='red'; e.style.color='white';" to indicate how we want to operate.
Step #4: Click [Apply] and [Save]
Now with every website you visit you'll see these fields colored instantly to your liking automatically.
Example #2:
Let’s suppose that you want all text in articles in every website you visit to be of a specific font style and size because it suits your eyes better.
In the browser Options look for “User Script Macros” and locate an empty slot.
Step #1: Check the “automated script” check-box.
Step #2: In the "Query Selector" field box paste “p,div,span” to indicate what we are targeting.
Step #3: In the "JavaScript" field box paste “e.style.font='normal 400 13px "Ms Sans Serif"';" to indicate how we want to operate.
Step #4: Click [Apply] and [Save]
Now with every website you visit you'll see the font change instantly to your liking automatically.
Example #3:
Let’s suppose that you want to prevent all audio and video on every website from playing.
(NB: The Classic already does this one for you automatically but we'll use it as an example anyway)
In the browser Options look for “User Script Macros” and locate an empty slot.
Step #1: Check the “automated script” check-box.
Step #2: In the "Query Selector" field box paste “audio,video” to indicate what we are targeting.
Step #3: In the "JavaScript" field box paste “e.pause(); e.removeAttribute('autoplay');" to indicate how we want to operate.
Step #4: Click [Apply] and [Save]
Now with every website you visit silence will reign supreme as it should automatically!
Example #4:
Let’s suppose that you want to remove those annoying flashing/animating .GIF ads and banners automatically.
(NB: The Classic already does this one for you manually with "Sanitize Page" but we'll use it as an example anyway)
In the browser Options look for “User Script Macros” and locate an empty slot.
Step #1: Check the “automated script” check-box.
Step #2: In the "Query Selector" field box paste “img[src$=".gif"]” to indicate what we are targeting.
Step #3: In the "JavaScript" field box paste “e.style.zIndex='-2147483647';" to indicate how we want to operate.
Step #4: Click [Apply] and [Save]
Now with every website you visit any annoying GIFs will have completely vanished automatically!
Example #5:
Let’s say we want to play a prank on our spouse or friend by making every website display upside down automatically!
In the browser Options look for “User Script Macros” and locate an empty slot.
Step #1: Check the “automated script” check-box.
Step #2: In the "Query Selector" field box paste “body” to indicate what we are targeting.
Step #3: In the "JavaScript" field box paste “e.style.transform='rotateZ(180deg)';" to indicate how we want to operate.
Step #4: Click [Apply] and [Save]
Now your friend or spouse will surely go insane!
So there you have it! Five easy examples of what can be done with a little scripting starting from v3.8, but of course the sky is the limit.
To the best of my knowledge Automated User Script Execution is yet another Classic Browser FIRST, as I don't believe there's another browser on the market that offers such tremendous power to its USERS over websites.
I hope you enjoy using it as much as I enjoyed writing it!