mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-09 12:22:33 +01:00
5c68867b92
The pseudo user styles code served only browsers based on Chromium 65 and earlier -- Chromium 66 supports native user styles and was first released more than two years ago. In Chromium-based browsers, the pseudo user styles code is being unconditionally injected in every page/frame just in case the browser is version 65 or earlier. Removing pseudo user styles reduce uBO's main content script in Chromium-based browsers by more than 20K. Related thread: - https://github.com/NanoAdblocker/NanoCore/issues/348#issuecomment-653646507
33 lines
874 B
Bash
Executable File
33 lines
874 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
echo "*** uBlock0.chromium: Creating web store package"
|
|
|
|
DES=dist/build/uBlock0.chromium
|
|
rm -rf $DES
|
|
mkdir -p $DES
|
|
|
|
echo "*** uBlock0.chromium: copying common files"
|
|
bash ./tools/copy-common-files.sh $DES
|
|
|
|
# Chrome store-specific
|
|
cp -R $DES/_locales/nb $DES/_locales/no
|
|
|
|
echo "*** uBlock0.chromium: Generating meta..."
|
|
python tools/make-chromium-meta.py $DES/
|
|
|
|
if [ "$1" = all ]; then
|
|
echo "*** uBlock0.chromium: Creating plain package..."
|
|
pushd $(dirname $DES/) > /dev/null
|
|
zip uBlock0.chromium.zip -qr $(basename $DES/)/*
|
|
popd > /dev/null
|
|
elif [ -n "$1" ]; then
|
|
echo "*** uBlock0.chromium: Creating versioned package..."
|
|
pushd $(dirname $DES/) > /dev/null
|
|
zip uBlock0_"$1".chromium.zip -qr $(basename $DES/)/*
|
|
popd > /dev/null
|
|
fi
|
|
|
|
echo "*** uBlock0.chromium: Package done."
|