reorganizing, preparing move to vAPI
Before Width: | Height: | Size: 817 B After Width: | Height: | Size: 817 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 840 B After Width: | Height: | Size: 840 B |
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 825 B |
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 792 B |
Before Width: | Height: | Size: 761 B After Width: | Height: | Size: 761 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B |
Before Width: | Height: | Size: 836 B After Width: | Height: | Size: 836 B |
Before Width: | Height: | Size: 836 B After Width: | Height: | Size: 836 B |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 837 B |
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 823 B After Width: | Height: | Size: 823 B |
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 818 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 777 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
@ -5,8 +5,8 @@
|
|||
"version": "0.8.1.4",
|
||||
"description": "__MSG_extShortDesc__",
|
||||
"icons": {
|
||||
"16": "icon_16.png",
|
||||
"128": "icon_128.png"
|
||||
"16": "img/icon_16.png",
|
||||
"128": "img/icon_128.png"
|
||||
},
|
||||
"browser_action": {
|
||||
"default_icon": {
|
9
platform/chromium/options_ui.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<script src="js/vapi-client.js"></script>
|
||||
<script src="js/options_ui.js"></script>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
45
platform/chromium/options_ui.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*******************************************************************************
|
||||
|
||||
µBlock - a browser extension to block requests.
|
||||
Copyright (C) 2015 The µBlock authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see {http://www.gnu.org/licenses/}.
|
||||
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
(function() {
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
'use strict';
|
||||
|
||||
var messager = vAPI.messaging.channel('_open');
|
||||
messager.send({
|
||||
what: 'gotoURL',
|
||||
details: {
|
||||
url: 'dashboard.html',
|
||||
select: true,
|
||||
index: -1
|
||||
}
|
||||
});
|
||||
window.close();
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
|
@ -156,7 +156,7 @@ return asyncJobManager;
|
|||
if ( typeof tabId !== 'number' || tabId <= 0 ) {
|
||||
return;
|
||||
}
|
||||
µm.asyncJobs.add('updateBadge-' + tabId, tabId, updateBadge, 250);
|
||||
µm.asyncJobs.add('updateBadge-' + tabId, tabId, updateBadge, 500);
|
||||
};
|
||||
|
||||
return updateBadgeAsync;
|
||||
|
|
|
@ -4,11 +4,25 @@
|
|||
|
||||
echo "*** µMatrix(Chromium): Creating package"
|
||||
echo "*** µMatrix(Chromium): Copying files"
|
||||
|
||||
DES=./dist/uMatrix.chromium
|
||||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
cp -R ./src/* $DES
|
||||
cp -R ./tools/_locales $DES
|
||||
cp -R ./assets $DES
|
||||
cp ./meta/chromium/* $DES
|
||||
|
||||
cp -R ./assets $DES/
|
||||
cp -R ./src/* $DES/
|
||||
cp -R $DES/_locales/nb $DES/_locales/no # Chrome store quirk
|
||||
cp ./platform/chromium/*.html $DES/
|
||||
cp ./platform/chromium/*.js $DES/js/
|
||||
cp -R ./platform/chromium/img/* $DES/img/
|
||||
cp ./platform/chromium/manifest.json $DES/
|
||||
cp LICENSE $DES/
|
||||
|
||||
if [ "$1" = all ]; then
|
||||
echo "*** µMatrix.chromium: Creating package..."
|
||||
pushd $(dirname $DES/)
|
||||
zip uMatrix.chromium.zip -qr $(basename $DES/)/*
|
||||
popd
|
||||
fi
|
||||
|
||||
echo "*** µMatrix(Chromium): Package done."
|
||||
|
|