Update userstyles scripts

This commit is contained in:
Roboron3042 2022-02-05 14:30:44 +01:00
parent 06050e5bd4
commit a38c929c6f
2 changed files with 33 additions and 16 deletions

View File

@ -3,8 +3,6 @@
TRANSPARENT=false
GREASYFORK=false
rm userstyle.css
while getopts 'gtv:' opt; do
case "$opt" in
g)
@ -70,3 +68,24 @@ then
fi
echo "}" >> userstyle.css
cat userstyle.css | wl-copy
if [ "$TRANSPARENT" = false ]
then
if [ "$GREASYFORK" = true ]
then
xdg-open https://greasyfork.org/es/scripts/409172/versions/new
else
xdg-open https://userstyles.world/edit/2849
fi
else
if [ "$GREASYFORK" = true ]
then
xdg-open https://greasyfork.org/es/scripts/409171/versions/new
else
xdg-open https://userstyles.world/edit/2848
fi
fi
rm userstyle.css

View File

@ -3,13 +3,8 @@
TRANSPARENT=false
GREASYFORK=false
rm userstyle.css
while getopts 'gs:v:' opt; do
while getopts 's:v:' opt; do
case "$opt" in
g)
GREASYFORK=true
;;
s)
STYLE="$OPTARG"
;;
@ -17,7 +12,7 @@ while getopts 'gs:v:' opt; do
VERSION="$OPTARG"
;;
?|h)
echo "Usage: $(basename $0) [-t] [-g] [-v version]"
echo "Usage: $(basename $0) [-s style] [-v version]"
exit 1
esac
done
@ -29,15 +24,10 @@ echo "/* ==UserStyle==
@description Cyberpunk Neon theme for Startpage" >> userstyle.css
fi
if [ "$GREASYFORK" = true ]
then
echo "@namespace https://greasyfork.org/en/users/109012" >> userstyle.css
else
echo "@namespace github.com/Roboron3042/Cyberpunk-Neon" >> userstyle.css
fi
echo \
"@author @Roboron3042 <robertoms258 at gmail dot com>
"@namespace github.com/Roboron3042/Cyberpunk-Neon
@author @Roboron3042 <robertoms258 at gmail dot com>
@homepageURL https://github.com/Roboron3042/Cyberpunk-Neon
@supportURL https://github.com/Roboron3042/Cyberpunk-Neon/issues
@version $VERSION
@ -52,3 +42,11 @@ then
fi
echo "}" >> userstyle.css
if [ "$STYLE" = "startpage" ]
then
xdg-open https://greasyfork.org/es/scripts/439540/versions/new
xdg-open https://userstyles.world/edit/3074
fi
rm userstyle.css