diff --git a/update_uad.php b/update_uad.php index b3d9bbc..55ad45a 100644 --- a/update_uad.php +++ b/update_uad.php @@ -1 +1,48 @@ $list) { + file_put_contents(__DIR__ . '/' . $list_type . '.json', json_encode($list, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); +} + +function get_removal(string $uad_removal): string { + switch ($uad_removal) { + default: + case "Recommended": + return "delete"; + case "Advanced": + return "replace"; + case "Expert": + return "caution"; + case "Unsafe": + return "unsafe"; + } +} \ No newline at end of file