up
This commit is contained in:
20
ffproxy.sh
20
ffproxy.sh
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# FUNZIONE ISTRUZIONI
|
||||
function istruzioni() {
|
||||
echo -e "\n[Utility per tunnel SOCKS5 su Chromium]"
|
||||
echo
|
||||
@@ -15,14 +16,7 @@ function istruzioni() {
|
||||
|
||||
}
|
||||
|
||||
function sed_extensions-preferences() {
|
||||
# Aspetta 3 secondi (per far creare il file extension-preferences.json) e poi lo modifica
|
||||
sleep 3
|
||||
ls $PROFILE_DIR/extension-preferences.json
|
||||
sed -i '$ s/}/,"uBlock0@raymondhill.net":{"permissions":["internal:privateBrowsingAllowed"],"origins":[]}}/' $PROFILE_DIR/extension-preferences.json
|
||||
}
|
||||
|
||||
# Funzione scarica e installa ublock origin
|
||||
# FUNZIONE INSTALLA UBLOCK ORIGIN
|
||||
function ublock() {
|
||||
|
||||
# Se la cartella del profilo socks-$PORT non esiste
|
||||
@@ -37,7 +31,7 @@ function ublock() {
|
||||
wget -q $LINK_VERS
|
||||
echo -e "\n Scarico il file: $LINK_VERS\n"
|
||||
|
||||
# # Compila il manifest.json
|
||||
# # Compila il file extension-settings.json
|
||||
cat <<EOL > /$PROFILE_DIR/extension-settings.json
|
||||
{
|
||||
"version": 3,
|
||||
@@ -82,6 +76,14 @@ mv "$name" "$PROFILE_DIR/extensions/uBlock0@raymondhill.net.xpi"
|
||||
}
|
||||
|
||||
|
||||
# FUNZIONE ASPETTA E MODIFICA PREFERENCE
|
||||
function sed_extensions-preferences() {
|
||||
# Aspetta 3 secondi (per far creare il file extension-preferences.json) e poi lo modifica
|
||||
sleep 3
|
||||
ls $PROFILE_DIR/extension-preferences.json
|
||||
sed -i '$ s/}/,"uBlock0@raymondhill.net":{"permissions":["internal:privateBrowsingAllowed"],"origins":[]}}/' $PROFILE_DIR/extension-preferences.json
|
||||
}
|
||||
|
||||
# Mostra Help
|
||||
if [ "$1" = "-h" -o "$1" = "--help" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user