mirror of https://github.com/gorhill/uBlock.git
patch firefox/legacy for changes in e5f2e9701d
This commit is contained in:
parent
e5f2e9701d
commit
9baf17fa2a
|
@ -28,5 +28,7 @@
|
|||
// Chromium 66 and above supports user stylesheets:
|
||||
// https://github.com/gorhill/uBlock/issues/3588
|
||||
|
||||
vAPI.supportsUserStylesheets =
|
||||
if ( typeof vAPI === 'object' ) {
|
||||
vAPI.supportsUserStylesheets =
|
||||
/\bChrom(?:e|ium)\/(?:6[6789]|[789]|1\d\d)/.test(navigator.userAgent);
|
||||
}
|
||||
|
|
|
@ -28,5 +28,7 @@
|
|||
// Chromium 66 and above supports user stylesheets:
|
||||
// https://github.com/gorhill/uBlock/issues/3588
|
||||
|
||||
vAPI.supportsUserStylesheets =
|
||||
if ( typeof vAPI === 'object' ) {
|
||||
vAPI.supportsUserStylesheets =
|
||||
/\bChrom(?:e|ium)\/(?:6[6789]|[789]|1\d\d)|\bFirefox\/\d/.test(navigator.userAgent);
|
||||
}
|
||||
|
|
|
@ -23,4 +23,6 @@
|
|||
|
||||
// User stylesheets are always supported with Firefox/webext .
|
||||
|
||||
vAPI.supportsUserStylesheets = true;
|
||||
if ( typeof vAPI === 'object' ) {
|
||||
vAPI.supportsUserStylesheets = true;
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ cp platform/firefox/css/* $DES/css/
|
|||
cp platform/firefox/polyfill.js $DES/js/
|
||||
cp platform/firefox/vapi-*.js $DES/js/
|
||||
cp platform/chromium/vapi-usercss.real.js $DES/js/
|
||||
cp platform/webext/vapi-usercss.js $DES/js/
|
||||
cp platform/firefox/bootstrap.js $DES/
|
||||
cp platform/firefox/processScript.js $DES/
|
||||
cp platform/firefox/frame*.js $DES/
|
||||
|
@ -32,10 +33,13 @@ cp platform/firefox/*.xul $DES/
|
|||
cp LICENSE.txt $DES/
|
||||
|
||||
echo "*** uBlock0.firefox: concatenating content scripts"
|
||||
cat $DES/js/vapi-usercss.real.js > /tmp/contentscript.js
|
||||
cat $DES/js/vapi-usercss.js > /tmp/contentscript.js
|
||||
echo >> /tmp/contentscript.js
|
||||
grep -v "^'use strict';$" $DES/js/vapi-usercss.real.js >> /tmp/contentscript.js
|
||||
echo >> /tmp/contentscript.js
|
||||
grep -v "^'use strict';$" $DES/js/contentscript.js >> /tmp/contentscript.js
|
||||
mv /tmp/contentscript.js $DES/js/contentscript.js
|
||||
rm $DES/js/vapi-usercss.js
|
||||
rm $DES/js/vapi-usercss.real.js
|
||||
|
||||
echo "*** uBlock0.firefox: Generating meta..."
|
||||
|
|
Loading…
Reference in New Issue