1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
bc3cb09cd4
firefox: update configuration 2024-03-09 16:11:31 +01:00
bd73f5d40d
scripts: strip-metadata helper 2024-03-09 16:11:31 +01:00
2 changed files with 29 additions and 0 deletions

View file

@ -24,6 +24,7 @@
"extensions.getAddons.showPane" = false;
"extensions.htmlaboutaddons.recommendations.enabled" = false;
"browser.discovery.enabled" = false;
"browser.shopping.experience2023.enabled" = false;
"datareporting.policy.dataSubmissionEnabled" = false;
"datareporting.healthreport.uploadEnabled" = false;
@ -69,6 +70,11 @@
"browser.urlbar.dnsResolveSingleWordsAfterSearch" = 0;
"browser.urlbar.suggest.quicksuggest.nonsponsored" = false;
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
"browser.urlbar.trending.featureGate" = false;
"browser.urlbar.addons.featureGate" = false;
"browser.urlbar.mdn.featureGate" = false;
"browser.urlbar.pocket.featureGate" = false;
"browser.urlbar.weather.featureGate" = false;
"browser.formfill.enable" = false;
"browser.privatebrowsing.forceMediaMemoryCache" = true;
@ -89,6 +95,8 @@
"security.ssl.treat_unsafe_negotiation_as_broken" = true;
"browser.xul.error_pages.expert_bad_cert" = true;
"network.http.referer.XOriginTrimmingPolicy" = 2;
"media.peerconnection.ice.proxy_only_if_behind_proxy" = true;
"media.peerconnection.ice.default_address_only" = true;

View file

@ -0,0 +1,21 @@
#!/usr/bin/env nu
def main [path: string] {
glob $path | each { |item|
match ($item | path parse | get extension | str downcase) {
"jpg" | "jpeg" | "png" => {
exiftool -all= -overwrite_original_in_place $item
},
"mp4" => {
let tmp_item = $"($item)_out.mp4"
ffmpeg -i $item -map_metadata -1 -c:v copy -c:a copy $tmp_item
rm $item
mv $tmp_item $item
},
_ => {
error make { msg: 'Unsupported file extension' }
}
}
}
}