diff --git a/amazon.desktop b/amazon.desktop new file mode 100755 index 0000000..9745de4 --- /dev/null +++ b/amazon.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Amazon (SSB) +GenericName=From A to Z +Exec=firefox -P amazon-ssb --class amazon-ssb --no-remote --ssb https://www.amazon.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/amazon.png +StartupWMClass=amazon-ssb diff --git a/amazon.png b/amazon.png new file mode 100644 index 0000000..2bde8af Binary files /dev/null and b/amazon.png differ diff --git a/amazon.proxy.desktop b/amazon.proxy.desktop new file mode 100755 index 0000000..6447c4c --- /dev/null +++ b/amazon.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Amazon (SSB) via ProxyChains +GenericName=From A to Z +Exec=proxychains firefox -P amazon-ssb --class amazon-ssb-proxy --no-remote -ssb https://www.amazon.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/amazon.png +StartupWMClass=amazon-ssb-proxy diff --git a/discord.desktop b/discord.desktop new file mode 100755 index 0000000..569a428 --- /dev/null +++ b/discord.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Discord (SSB) +GenericName=Internet Messenger +Exec=firefox -P discord-ssb --class discord-ssb --no-remote --ssb https://discord.com/channels/@me +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/discord.png +StartupWMClass=discord-ssb diff --git a/discord.png b/discord.png new file mode 100644 index 0000000..5eadfff Binary files /dev/null and b/discord.png differ diff --git a/discord.proxy.desktop b/discord.proxy.desktop new file mode 100755 index 0000000..77913a9 --- /dev/null +++ b/discord.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Discord (SSB) via ProxyChains +GenericName=Internet Messenger +Exec=proxychains firefox -P discord-ssb --class discord-ssb-proxy --no-remote --ssb https://discord.com/channels/@me +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/discord.png +StartupWMClass=discord-ssb-proxy diff --git a/ebay.desktop b/ebay.desktop new file mode 100755 index 0000000..13996bd --- /dev/null +++ b/ebay.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=ebay (SSB) +GenericName=Online Auction and Market Place +Exec=firefox -P ebay-ssb --class ebay-ssb --no-remote --ssb https://www.ebay.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/ebay.png +StartupWMClass=ebay-ssb diff --git a/ebay.png b/ebay.png new file mode 100644 index 0000000..abe7fcc Binary files /dev/null and b/ebay.png differ diff --git a/ebay.proxy.desktop b/ebay.proxy.desktop new file mode 100755 index 0000000..fe40294 --- /dev/null +++ b/ebay.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=ebay (SSB) via ProxyChains +GenericName=Online Auction and Market Place +Exec=proxychains firefox -P ebay-ssb --class ebay-ssb-proxy --no-remote -ssb https://www.ebay.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/ebay.png +StartupWMClass=ebay-ssb-proxy diff --git a/makessb.sh b/makessb.sh new file mode 100755 index 0000000..d48ac89 --- /dev/null +++ b/makessb.sh @@ -0,0 +1,139 @@ +#!/usr/bin/env sh + +# ©2021 Brainwrecked Tech + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# For a copy of this license, see . + +APPS_DIR="${HOME}/.local/share/applications/ssb" +WAPPDIRF="${HOME}/.local/share/desktop-directories/web-applications.directory" +WAPPMENF="${HOME}/.config/menus/applications-merged/web-applications.menu" +WAPPNAME="${1}" +WAPPDESC="${2}" +WAPPADDR="${3}" +WAPPICON="${4}" + +### MAKE SURE THE WEB APP DIRECTORY ENTRY EXISTS + +if [ ! -e "${WAPPDIRF}" ]; then + +cat << EOF > "${WAPPDIRF}" +[Desktop Entry] +Type=Directory +Encoding=UTF-8 +Name=Web Applications +EOF + +fi + +### MAKE SURE THE WEB APP MENU ENTRY EXISTS + +if [ ! -e "${WAPPMENF}" ]; then + +cat << EOF > "${WAPPMENF}" + + + Applications + + Web Applications + web-applications.directory + + WebApplications + + + +EOF + +fi + +### MAKE SURE THE DIRECTORY FOR WEB APPS EXISTS +mkdir -p "${APPS_DIR}" + +### ASK FOR AN APPLICATION NAME IF $1 WASN'T SPECIFIED + +if [ -z "${WAPPNAME}" ]; then + printf 'Application Name: ' + read -r WAPPNAME +fi + +### ASK FOR A DESCRIPTION IF $2 WASN'T SPECIFIED + +if [ -z "${WAPPDESC}" ]; then + printf 'Description: ' + read -r WAPPDESC +fi + +### ASK FOR AN APPLICATION URL IF $3 WASN'T SPECIFIED + +if [ -z "${WAPPADDR}" ]; then + printf '\nMake sure this is the address that you want to initially show.' + printf '\nThis is usually NOT the address of the login screen.\n' + printf '\nApplication Addr: ' + read -r WAPPADDR +fi + +### ASK FOR AN APPLICATION ICON IF $4 WASN'T SPECIFIED + +if [ -z "${WAPPICON}" ]; then + printf '\nNo need to download an icon -- give the URL to an image and this script' + printf '\nwill grab it, rename it, and put it in the right place.\n' + printf '\nApplication Icon: ' + read -r WAPPICON + printf '\n' +fi + +ICON_LOC="${APPS_DIR}/${WAPPNAME,,}.${WAPPICON##*.}" +DSKTPFIL="${APPS_DIR}/${WAPPNAME,,}.desktop" + +### CREATE DIRECTORY FOR FIREFOX CACHE +printf -- ':: ' && mkdir -pv "/run/user/${UID}/${WAPPNAME,,}-ssb" + +### GRAB THE ICON AND WRITE IT TO THE WEB APP ICON DIRECTORY +curl -s "${WAPPICON}" -o "${ICON_LOC}" -w ':: curl: wrote "%{url_effective}" to "%{filename_effective}"\n' + +### CREATE A NEW PROFILE FOR THIS WEB APP +/usr/bin/firefox -CreateProfile "${WAPPNAME,,}-ssb" -no-remote + +### FIND THE DIRECTORY FIREFOX CREATED +FFPFDIR="$(find "${HOME}/.mozilla/firefox" -type d -name '*'."${WAPPNAME,,}-ssb")" + +### INJECT PREFERENCES +echo 'user_pref("browser.cache.disk.parent_directory", "/run/user/'"${UID}"'/'"${WAPPNAME}"'-ssb");' >> "${FFPFDIR}/user.js" +echo 'user_pref("browser.ssb.enabled", true);' >> "${FFPFDIR}/user.js" +echo 'user_pref("extensions.pocket.enabled", false);' >> "${FFPFDIR}/user.js" +echo 'user_pref("privacy.donottrackheader.enabled", true);' >> "${FFPFDIR}/user.js" + +### CREATE A DESKTOP ENTRY FOR THE WEB APP +echo "[Desktop Entry] +Name=${WAPPNAME} (SSB) +GenericName=${WAPPDESC} +Exec=firefox -P ${WAPPNAME,,}-ssb --class ${WAPPNAME,,}-ssb --no-remote --ssb ${WAPPADDR} +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=${ICON_LOC} +StartupWMClass=${WAPPNAME,,}-ssb" > "${DSKTPFIL}" && printf -- ':: echo: created %s\n' "${DSKTPFIL}" + +### CREATE A PROXIED VERSION +DSKTPFIL="${DSKTPFIL/.desktop/.proxy.desktop}" +echo "[Desktop Entry] +Name=${WAPPNAME} (SSB) via ProxyChains +GenericName=${WAPPDESC} +Exec=proxychains firefox -P ${WAPPNAME,,}-ssb --class ${WAPPNAME,,}-ssb-proxy --no-remote -ssb ${WAPPADDR} +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=${ICON_LOC} +StartupWMClass=${WAPPNAME,,}-ssb-proxy" > "${DSKTPFIL}" && printf -- ':: echo: created %s\n' "${DSKTPFIL}" diff --git a/mssbwpcv.sh b/mssbwpcv.sh new file mode 100755 index 0000000..9ee668d --- /dev/null +++ b/mssbwpcv.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env sh + +# ©2021 Brainwrecked Tech + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# For a copy of this license, see . + +./makessb.sh "${@}" + +APPS_DIR="${HOME}/.local/share/applications/ssb" +WAPPDIRF="${HOME}/.local/share/desktop-directories/web-applications.directory" +WAPPMENF="${HOME}/.config/menus/applications-merged/web-applications.menu" +WAPPNAME="${1}" +WAPPDESC="${2}" +WAPPADDR="${3}" +WAPPICON="${4}" + +ICON_LOC="${APPS_DIR}/${WAPPNAME,,}.${WAPPICON##*.}" +DSKTPFIL="${APPS_DIR}/${WAPPNAME,,}.proxy.desktop" + +### CREATE A PROXIED VERSION +echo "[Desktop Entry] +Name=${WAPPNAME} (SSB) via ProxyChains +GenericName=${WAPPDESC} +Exec=proxychains firefox -P ${WAPPNAME,,}-ssb --class ${WAPPNAME,,}-ssb-proxy --no-remote -ssb ${WAPPADDR} +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=${ICON_LOC} +StartupWMClass=${WAPPNAME,,}-ssb-proxy" > "${DSKTPFIL}" && printf -- ':: echo: created %s\n' "${DSKTPFIL}" diff --git a/paycom.desktop b/paycom.desktop new file mode 100755 index 0000000..52d75e7 --- /dev/null +++ b/paycom.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Paycom (SSB) +GenericName=Employee Self-Service +Exec=firefox -P paycom-ssb --class paycom-ssb --no-remote --ssb https://www.paycomonline.net/v4/ee/web.php/app/login +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/paycom.png +StartupWMClass=paycom-ssb diff --git a/paycom.png b/paycom.png new file mode 100644 index 0000000..2a81fcf Binary files /dev/null and b/paycom.png differ diff --git a/paycom.proxy.desktop b/paycom.proxy.desktop new file mode 100755 index 0000000..9ac6c19 --- /dev/null +++ b/paycom.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Paycom (SSB) via ProxyChains +GenericName=Employee Self-Service +Exec=proxychains firefox -P paycom-ssb --class paycom-ssb-proxy --no-remote -ssb https://www.paycomonline.net/v4/ee/web.php/app/login +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/paycom.png +StartupWMClass=paycom-ssb-proxy diff --git a/twitter.desktop b/twitter.desktop new file mode 100755 index 0000000..dfc33bd --- /dev/null +++ b/twitter.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Twitter (SSB) +GenericName=Micro-Blogging Platform +Exec=firefox -P twitter-ssb --class twitter-ssb --no-remote --ssb https://twitter.com/home +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/twitter.png +StartupWMClass=twitter-ssb diff --git a/twitter.png b/twitter.png new file mode 100644 index 0000000..36503d9 Binary files /dev/null and b/twitter.png differ diff --git a/twitter.proxy.desktop b/twitter.proxy.desktop new file mode 100755 index 0000000..015dfc5 --- /dev/null +++ b/twitter.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Twitter (SSB) via ProxyChains +GenericName=Micro-Blogging Platform +Exec=proxychains firefox -P twitter-ssb --class twitter-ssb-proxy --no-remote -ssb https://twitter.com/home +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/twitter.png +StartupWMClass=twitter-ssb-proxy diff --git a/tyt.desktop b/tyt.desktop new file mode 100755 index 0000000..c0d5e28 --- /dev/null +++ b/tyt.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=TYT (SSB) +GenericName=The Home of Progressives +Exec=firefox -P tyt-ssb --class tyt-ssb --no-remote --ssb https://tyt.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/tyt.png +StartupWMClass=tyt-ssb diff --git a/tyt.png b/tyt.png new file mode 100644 index 0000000..884b549 Binary files /dev/null and b/tyt.png differ diff --git a/tyt.proxy.desktop b/tyt.proxy.desktop new file mode 100755 index 0000000..e36ffb1 --- /dev/null +++ b/tyt.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=TYT (SSB) via ProxyChains +GenericName=The Home of Progressives +Exec=proxychains firefox -P tyt-ssb --class tyt-ssb-proxy --no-remote --ssb https://tyt.com +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/tyt.png +StartupWMClass=tyt-ssb-proxy diff --git a/voice.desktop b/voice.desktop new file mode 100755 index 0000000..6d14acf --- /dev/null +++ b/voice.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Voice (SSB) +GenericName=Google VoIP and SMS Service +Exec=firefox -P voice-ssb --class voice-ssb --no-remote --ssb https://voice.google.com/u/0/messages +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/voice.png +StartupWMClass=voice-ssb diff --git a/voice.png b/voice.png new file mode 100644 index 0000000..3cfa4fc Binary files /dev/null and b/voice.png differ diff --git a/voice.proxy.desktop b/voice.proxy.desktop new file mode 100755 index 0000000..5a91491 --- /dev/null +++ b/voice.proxy.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Voice (SSB) via ProxyChains +GenericName=Google VoIP and SMS Service +Exec=proxychains firefox -P voice-ssb --class voice-ssb-proxy --no-remote -ssb https://voice.google.com/u/0/messages +StartupNotify=true +Terminal=false +Type=Application +Categories=WebApplications +Icon=/home/paul/.local/share/applications/ssb/voice.png +StartupWMClass=voice-ssb-proxy