Automatically run JavaScript code upon loading a specific website

前端 未结 2 501
囚心锁ツ
囚心锁ツ 2021-02-04 04:08

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.<

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 04:45

    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.

提交回复
热议问题