| Crates.io | userscript |
| lib.rs | userscript |
| version | 0.1.0 |
| created_at | 2025-01-24 13:57:07.799006+00 |
| updated_at | 2025-01-24 13:57:07.799006+00 |
| description | userscript |
| homepage | https://github.com/ahaoboy/userscript |
| repository | https://github.com/ahaoboy/userscript |
| max_upload_size | |
| id | 1529452 |
| size | 9,145 |
Parsing the metadata of the Tampermonkey script
let mut us = UserScript::try_from(
r#"// ==UserScript==
// @author You
// ==/UserScript=="#,
)
.unwrap();
us.set("author", "Me");
assert_eq!(us.get("author"), Some(&"Me".to_string()))