mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-13 10:17:34 +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
40 lines
1 KiB
Bash
Executable file
40 lines
1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# This script assumes a linux environment
|
|
|
|
echo "*** uBlock0.opera: Creating web store package"
|
|
|
|
DES=dist/build/uBlock0.opera
|
|
rm -rf $DES
|
|
mkdir -p $DES
|
|
|
|
echo "*** uBlock0.opera: copying common files"
|
|
bash ./tools/copy-common-files.sh $DES
|
|
|
|
# Opera-specific
|
|
cp platform/opera/manifest.json $DES/
|
|
rm -r $DES/_locales/az
|
|
rm -r $DES/_locales/cv
|
|
rm -r $DES/_locales/hi
|
|
rm -r $DES/_locales/hy
|
|
rm -r $DES/_locales/ka
|
|
rm -r $DES/_locales/kk
|
|
rm -r $DES/_locales/mr
|
|
rm -r $DES/_locales/ta
|
|
rm -r $DES/_locales/th
|
|
|
|
# Removing WASM modules until I receive an answer from Opera people: Opera's
|
|
# uploader issue an error for hntrie.wasm and this prevents me from
|
|
# updating uBO in the Opera store. The modules are unused anyway for
|
|
# Chromium- based browsers.
|
|
rm $DES/js/wasm/*.wasm
|
|
rm $DES/js/wasm/*.wat
|
|
rm $DES/lib/lz4/*.wasm
|
|
rm $DES/lib/lz4/*.wat
|
|
rm $DES/lib/publicsuffixlist/wasm/*.wasm
|
|
rm $DES/lib/publicsuffixlist/wasm/*.wat
|
|
|
|
echo "*** uBlock0.opera: Generating meta..."
|
|
python tools/make-opera-meta.py $DES/
|
|
|
|
echo "*** uBlock0.opera: Package done."
|