1 2 3 4 5 6 7 8 9 10 11 12 13 14
Parsing the metadata of the Tampermonkey script ```rust 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())) ```