TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tinker with userscripts, if you are new to JavaScript

6 pointsby fazlerocksabout 4 years ago

1 comment

franga2000about 4 years ago
Since more and more web sites&#x2F;apps are using JavaScript, some of the most powerful things you can do are in interfacing with the site&#x27;s own JS. Throw down a DOM breakpoint, trace the call stack to find a method you want, find a reference to the app object and you can basically write any macro you want.<p>Yet userscripts fail to meet that use-case. They run in weird sandboxes that pretend to be the real runtime but really aren&#x27;t. They focus on DOM modification in a time when the DOM is little more than a framebuffer. I love userscripts and used to have a bunch of them. Now, I have a folder of snippets to paste into the dev console and a bunch of custom extensions in dev-mode. Userscripts are simply too limiting these days.