문제

I've written scripts to filter out threads and posts in a programming forum by author.

But you need to post the code into the web console for each page individually.

I was wondering if it were possible and if so how (using either firefox or chrome), to set your browser up to run a specific script upon loading a specific site? Is it possible as an extension or plugin?

도움이 되었습니까?

해결책

You can use Tampermonkey for Google Chrome

Tampermonkey is the most popular userscript manager for Google Chrome.

Greasemonkey for Firefox:

Allows you to customize the way a web page displays or behaves, by using small bits of JavaScript.

다른 팁

You can use dotjs.

dotjs is a Google Chrome extension that executes JavaScript files in ~/.js based on their filename.

If you navigate to http://www.google.com/, dotjs will execute ~/.js/google.com.js.

This makes it super easy to spruce up your favorite pages using JavaScript.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top