ss
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import base64
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
@@ -53,15 +54,17 @@ def tm_hash(value: Any, seen: list[int] | None = None) -> str:
|
||||
|
||||
|
||||
def build_payload(script_text: str) -> dict[str, Any]:
|
||||
encoded_source = base64.b64encode(script_text.encode("utf-8")).decode("ascii")
|
||||
return {
|
||||
"version": "1",
|
||||
"scripts": [
|
||||
{
|
||||
"name": "YouTube Studio Auto Dismiss",
|
||||
"file_url": GREASYFORK_URL,
|
||||
"source": script_text,
|
||||
"source": encoded_source,
|
||||
"enabled": True,
|
||||
"position": 1,
|
||||
"options": {},
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
|
||||
Reference in New Issue
Block a user