Sample User Script

A simple user script that modifies a webpage's background color.

目前为 2025-04-12 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Sample User Script
  3. // @namespace http://example.com/
  4. // @version 1.0
  5. // @description A simple user script that modifies a webpage's background color.
  6. // @author Your Name
  7. // @license MIT
  8. // @match https://example.com/*
  9. // @grant none
  10. // @require http://example.com/library.js
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // This script will change the background color of the webpage to blue.
  17. document.body.style.backgroundColor = 'blue';
  18.  
  19. // Disclosure: This script does not track users or display ads.
  20. // However, if you are concerned about external content, you can inspect the script's source for full transparency.
  21.  
  22. // Reason for being a script: This script provides functionality to modify the background color of a page in real-time.
  23. })();