Update userstyles scripts
This commit is contained in:
parent
06050e5bd4
commit
a38c929c6f
|
@ -3,8 +3,6 @@
|
||||||
TRANSPARENT=false
|
TRANSPARENT=false
|
||||||
GREASYFORK=false
|
GREASYFORK=false
|
||||||
|
|
||||||
rm userstyle.css
|
|
||||||
|
|
||||||
while getopts 'gtv:' opt; do
|
while getopts 'gtv:' opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
g)
|
g)
|
||||||
|
@ -70,3 +68,24 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "}" >> userstyle.css
|
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
|
||||||
|
|
|
@ -3,13 +3,8 @@
|
||||||
TRANSPARENT=false
|
TRANSPARENT=false
|
||||||
GREASYFORK=false
|
GREASYFORK=false
|
||||||
|
|
||||||
rm userstyle.css
|
while getopts 's:v:' opt; do
|
||||||
|
|
||||||
while getopts 'gs:v:' opt; do
|
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
g)
|
|
||||||
GREASYFORK=true
|
|
||||||
;;
|
|
||||||
s)
|
s)
|
||||||
STYLE="$OPTARG"
|
STYLE="$OPTARG"
|
||||||
;;
|
;;
|
||||||
|
@ -17,7 +12,7 @@ while getopts 'gs:v:' opt; do
|
||||||
VERSION="$OPTARG"
|
VERSION="$OPTARG"
|
||||||
;;
|
;;
|
||||||
?|h)
|
?|h)
|
||||||
echo "Usage: $(basename $0) [-t] [-g] [-v version]"
|
echo "Usage: $(basename $0) [-s style] [-v version]"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -29,15 +24,10 @@ echo "/* ==UserStyle==
|
||||||
@description Cyberpunk Neon theme for Startpage" >> userstyle.css
|
@description Cyberpunk Neon theme for Startpage" >> userstyle.css
|
||||||
fi
|
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 \
|
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
|
@homepageURL https://github.com/Roboron3042/Cyberpunk-Neon
|
||||||
@supportURL https://github.com/Roboron3042/Cyberpunk-Neon/issues
|
@supportURL https://github.com/Roboron3042/Cyberpunk-Neon/issues
|
||||||
@version $VERSION
|
@version $VERSION
|
||||||
|
@ -52,3 +42,11 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "}" >> userstyle.css
|
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
|
||||||
|
|
Loading…
Reference in New Issue