add file headers that were missing and add a readme
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 31s

This commit is contained in:
Lee 2024-04-25 23:51:36 +01:00
parent 12d0a00ad0
commit 11ae94dc3e
2 changed files with 21 additions and 2 deletions

14
README.md Normal file

@ -0,0 +1,14 @@
# ScoreSaber Utils (UserScript)
This is a UserScript that adds some useful features to the ScoreSaber website.
## Features
- **+1 PP**: See how much raw pp it takes to gain +1 global pp.
## Installation
1. Install a UserScript manager for your browser:
- [Tampermonkey](https://www.tampermonkey.net/) for Chrome, Firefox, Edge, Safari, Opera, and other browsers.
2. Install the UserScript by clicking [here](https://ssu.fascinated.cc/scripts/bundle.user.js).

@ -1,9 +1,10 @@
const path = require('path'); const path = require('path');
const { UserscriptPlugin } = require('webpack-userscript'); const { UserscriptPlugin } = require('webpack-userscript');
module.exports = { module.exports = {
entry: './src/index.ts', entry: './src/index.ts',
mode: process.env.NODE_ENV || 'development', mode: 'production',
module: { module: {
rules: [ rules: [
{ {
@ -21,7 +22,11 @@ module.exports = {
headers: { headers: {
name: "ScoreSaber Utils", name: "ScoreSaber Utils",
"run-at": "document-end", "run-at": "document-end",
match: "https://scoresaber.com/*" match: "https://scoresaber.com/*",
updateURL: "https://ssu.fascinated.cc/scripts/bundle.user.js",
downloadURL: "https://ssu.fascinated.cc/scripts/bundle.user.js",
require: ["https://ssu.fascinated.cc/scripts/bundle.meta.js"],
version: `1.0.0-${process.env.GIT_REV || 'dev'}`,
} }
}) })
], ],