TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tinker with userscripts, if you are new to JavaScript

6 点作者 fazlerocks大约 4 年前

1 comment

franga2000大约 4 年前
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.