uv for PyPI

Update the PyPI installation command with `uv add`

目前为 2024-08-25 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name uv for PyPI
  3. // @namespace uv-for-pypi
  4. // @match https://pypi.org/project/*
  5. // @grant none
  6. // @version 1.0.1
  7. // @author uncenter
  8. // @description Update the PyPI installation command with `uv add`
  9. // ==/UserScript==
  10.  
  11. let cmd = document.querySelector('#pip-command');
  12. cmd.textContent = cmd.textContent.replace('pip install', 'uv add');