Compare commits
2 commits
39ebb798c8
...
bc3cb09cd4
Author | SHA1 | Date | |
---|---|---|---|
bc3cb09cd4 | |||
bd73f5d40d |
2 changed files with 29 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
"extensions.getAddons.showPane" = false;
|
"extensions.getAddons.showPane" = false;
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled" = false;
|
"extensions.htmlaboutaddons.recommendations.enabled" = false;
|
||||||
"browser.discovery.enabled" = false;
|
"browser.discovery.enabled" = false;
|
||||||
|
"browser.shopping.experience2023.enabled" = false;
|
||||||
|
|
||||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
|
@ -69,6 +70,11 @@
|
||||||
"browser.urlbar.dnsResolveSingleWordsAfterSearch" = 0;
|
"browser.urlbar.dnsResolveSingleWordsAfterSearch" = 0;
|
||||||
"browser.urlbar.suggest.quicksuggest.nonsponsored" = false;
|
"browser.urlbar.suggest.quicksuggest.nonsponsored" = false;
|
||||||
"browser.urlbar.suggest.quicksuggest.sponsored" = 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.formfill.enable" = false;
|
||||||
|
|
||||||
"browser.privatebrowsing.forceMediaMemoryCache" = true;
|
"browser.privatebrowsing.forceMediaMemoryCache" = true;
|
||||||
|
@ -89,6 +95,8 @@
|
||||||
"security.ssl.treat_unsafe_negotiation_as_broken" = true;
|
"security.ssl.treat_unsafe_negotiation_as_broken" = true;
|
||||||
"browser.xul.error_pages.expert_bad_cert" = 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.proxy_only_if_behind_proxy" = true;
|
||||||
"media.peerconnection.ice.default_address_only" = true;
|
"media.peerconnection.ice.default_address_only" = true;
|
||||||
|
|
||||||
|
|
21
home/programs/scripts/strip-metadata
Executable file
21
home/programs/scripts/strip-metadata
Executable 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' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue