added script

This commit is contained in:
2024-01-24 18:44:34 -06:00
parent 9b499a2109
commit 2d6f757f77
6 changed files with 1649 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
declare var validateForm: Function
validateForm = Function(
validateForm
.toString()
.replace(/^function validateForm\(\)(.|\n)*?\{/, '')
.replace(/\}$/, '')
.replaceAll(
'var regexp = /(https?:\\/\\/.*\\.(?:png|jpg|gif|bmp|jpeg))$/i',
'var regexp = /(https?:\\/\\/.*\\.(?:png|jpg|gif|bmp|jpeg|webp))$/i'
)
)

View File

@@ -0,0 +1,9 @@
{
"$schema": "https://git.zomo.dev/zomo/browser-scripts-builder/raw/branch/main/meta.schema.json",
"name": "Hunger Games BrantSteele WebP Support",
"namespace": "zomo.dev",
"match": "https://brantsteele.net/hungergames/edit.php",
"version": "1.0",
"description": "fix the form validator to allow webp images",
"runat": "document-end"
}

View File

@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"types": [
"../../node_modules/@types/greasemonkey",
"../../node_modules/browser-scripts-builder"
]
}
}