I use the userscript manager, Tampermonkey: https://www.tampermonkey.net/
This allows me to run javascript whenever I visit sites. Here are some of my personal scripts I've written:
Running random javascript that can run on any site you visit from a stranger is a very bad idea! Someone could steal your personal information, steal your passwords, etc. Please do not just use these scripts bindly! If you ever run into a userscript that you don't fully understand, you shouldn't use it. Be safe! :D
Prevents popups from various sites. Please update @match for your needs.
Prevents photobucket from redirecting you to other pages as a form of forcing you to see ads.
This script made it look like dark souls was a hack n slash game on Steam during one of their sales. This is an inside joke between friends as we like to joking argue whether or not dark souls is a hack n slash. Obviously this script won't work now since Steam has updated their site, but the code is still interesting to reference.
Here are some screenshots and a video of the results of the script: Video recording Screenshot
Auto clicks the treasure chess icon when watching someone's twitch. This can be very useful since you can leave this running while someone's twitch is minimized or on a different tab.
!Warning - Instagram has safeguards in place for stuff like this. They will prevent http requests after a minute of this script running You may get locked out of your account if you overuse this script. So far I've been locked out temporarily (1 day) and only locked out of profiles where I can using the script. Regardless, use at your own risk.
Open your Chrome console and use either of these methods to start/stop a 'hunt' for the newest post
hunt()
- Will refresh the page over and over again until a new post is found. Once it is found, it will be opened and liked for you.
hunt(num)
- Debounce on num milliseconds between refreshes (4000 seconds allows for roughly an hour of refreshing before getting blocked out).
stopHunt()
- Will stop any 'hunts' you have active.
This script is useful if you want to compete for the first like
Auto redirects to Twitter and back. This is done because Medium doesn't enforce a paywall on articles where the referrer is Twitter. This script also adds a refresh button to handle edge cases where you are navigating on the Medium site and no redirect takes place (due to some of the behavior of the site being Single Page Application)
There's a one-liner workaround where you mess up the cookie's uid value. This is the best performt way to get around the paywall, but you can't be signed in when using this bypass trick. Also you will still get ads / ui reminding you of your 'limit' on free articles.
Removes paywall html/css and forces normal behavior on the articles being viewed. Works without having to be signed in (haven't tested if it works when you're signed in, but I'd expect it to). Something to note about this solution is that the la times tries to scroll you to the top of the page, so even if you remove the overlay and make the page 'scrollable', you'll not be able to read the article. To work around this, we make the body tag have max height 100vh and make that scrollable using overflow-y: auto. This means that the styles of the site is changed slightly. I wouldn't expect anyone to notice this change.
Removes paywall html/css and forces normal behavior on the articles being viewed. Works without having to be signed in, and works when you are signed in.