Browse Source

reorganizing, preparing move to vAPI

pull/2/head
gorhill 10 years ago
parent
commit
63aa4be9f7
  1. 0
      platform/chromium/img/browsericons/icon19-0.png
  2. 0
      platform/chromium/img/browsericons/icon19-1.png
  3. 0
      platform/chromium/img/browsericons/icon19-10.png
  4. 0
      platform/chromium/img/browsericons/icon19-11.png
  5. 0
      platform/chromium/img/browsericons/icon19-12.png
  6. 0
      platform/chromium/img/browsericons/icon19-13.png
  7. 0
      platform/chromium/img/browsericons/icon19-14.png
  8. 0
      platform/chromium/img/browsericons/icon19-15.png
  9. 0
      platform/chromium/img/browsericons/icon19-16.png
  10. 0
      platform/chromium/img/browsericons/icon19-17.png
  11. 0
      platform/chromium/img/browsericons/icon19-18.png
  12. 0
      platform/chromium/img/browsericons/icon19-19.png
  13. 0
      platform/chromium/img/browsericons/icon19-2.png
  14. 0
      platform/chromium/img/browsericons/icon19-3.png
  15. 0
      platform/chromium/img/browsericons/icon19-4.png
  16. 0
      platform/chromium/img/browsericons/icon19-5.png
  17. 0
      platform/chromium/img/browsericons/icon19-6.png
  18. 0
      platform/chromium/img/browsericons/icon19-7.png
  19. 0
      platform/chromium/img/browsericons/icon19-8.png
  20. 0
      platform/chromium/img/browsericons/icon19-9.png
  21. 0
      platform/chromium/img/browsericons/icon19.png
  22. 0
      platform/chromium/img/browsericons/icon38.png
  23. 4
      platform/chromium/manifest.json
  24. 9
      platform/chromium/options_ui.html
  25. 45
      platform/chromium/options_ui.js
  26. 0
      src/_locales/am/messages.json
  27. 0
      src/_locales/ar/messages.json
  28. 0
      src/_locales/bg/messages.json
  29. 0
      src/_locales/bn/messages.json
  30. 0
      src/_locales/ca/messages.json
  31. 0
      src/_locales/cs/messages.json
  32. 0
      src/_locales/da/messages.json
  33. 0
      src/_locales/de/messages.json
  34. 0
      src/_locales/el/messages.json
  35. 0
      src/_locales/en/messages.json
  36. 0
      src/_locales/en_GB/messages.json
  37. 0
      src/_locales/es/messages.json
  38. 0
      src/_locales/et/messages.json
  39. 0
      src/_locales/fa/messages.json
  40. 0
      src/_locales/fi/messages.json
  41. 0
      src/_locales/fil/messages.json
  42. 0
      src/_locales/fr/messages.json
  43. 0
      src/_locales/gu/messages.json
  44. 0
      src/_locales/he/messages.json
  45. 0
      src/_locales/hi/messages.json
  46. 0
      src/_locales/hr/messages.json
  47. 0
      src/_locales/hu/messages.json
  48. 0
      src/_locales/id/messages.json
  49. 0
      src/_locales/it/messages.json
  50. 0
      src/_locales/ja/messages.json
  51. 0
      src/_locales/kn/messages.json
  52. 0
      src/_locales/ko/messages.json
  53. 0
      src/_locales/lt/messages.json
  54. 0
      src/_locales/lv/messages.json
  55. 0
      src/_locales/ml/messages.json
  56. 0
      src/_locales/mr/messages.json
  57. 0
      src/_locales/ms/messages.json
  58. 0
      src/_locales/nb/messages.json
  59. 0
      src/_locales/nl/messages.json
  60. 0
      src/_locales/pl/messages.json
  61. 0
      src/_locales/pt_BR/messages.json
  62. 0
      src/_locales/pt_PT/messages.json
  63. 0
      src/_locales/ro/messages.json
  64. 0
      src/_locales/ru/messages.json
  65. 0
      src/_locales/sk/messages.json
  66. 0
      src/_locales/sl/messages.json
  67. 0
      src/_locales/sr/messages.json
  68. 0
      src/_locales/sv/messages.json
  69. 0
      src/_locales/sw/messages.json
  70. 0
      src/_locales/ta/messages.json
  71. 0
      src/_locales/te/messages.json
  72. 0
      src/_locales/th/messages.json
  73. 0
      src/_locales/tr/messages.json
  74. 0
      src/_locales/uk/messages.json
  75. 0
      src/_locales/vi/messages.json
  76. 0
      src/_locales/zh_CN/messages.json
  77. 0
      src/img/icon_128.png
  78. 0
      src/img/icon_16.png
  79. 0
      src/img/icon_64.png
  80. 2
      src/js/async.js
  81. 22
      tools/make-chromium.sh

0
src/img/browsericons/icon19-0.png → platform/chromium/img/browsericons/icon19-0.png

Before

Width: 19  |  Height: 19  |  Size: 817 B

After

Width: 19  |  Height: 19  |  Size: 817 B

0
src/img/browsericons/icon19-1.png → platform/chromium/img/browsericons/icon19-1.png

Before

Width: 19  |  Height: 19  |  Size: 830 B

After

Width: 19  |  Height: 19  |  Size: 830 B

0
src/img/browsericons/icon19-10.png → platform/chromium/img/browsericons/icon19-10.png

Before

Width: 19  |  Height: 19  |  Size: 840 B

After

Width: 19  |  Height: 19  |  Size: 840 B

0
src/img/browsericons/icon19-11.png → platform/chromium/img/browsericons/icon19-11.png

Before

Width: 19  |  Height: 19  |  Size: 814 B

After

Width: 19  |  Height: 19  |  Size: 814 B

0
src/img/browsericons/icon19-12.png → platform/chromium/img/browsericons/icon19-12.png

Before

Width: 19  |  Height: 19  |  Size: 829 B

After

Width: 19  |  Height: 19  |  Size: 829 B

0
src/img/browsericons/icon19-13.png → platform/chromium/img/browsericons/icon19-13.png

Before

Width: 19  |  Height: 19  |  Size: 825 B

After

Width: 19  |  Height: 19  |  Size: 825 B

0
src/img/browsericons/icon19-14.png → platform/chromium/img/browsericons/icon19-14.png

Before

Width: 19  |  Height: 19  |  Size: 808 B

After

Width: 19  |  Height: 19  |  Size: 808 B

0
src/img/browsericons/icon19-15.png → platform/chromium/img/browsericons/icon19-15.png

Before

Width: 19  |  Height: 19  |  Size: 822 B

After

Width: 19  |  Height: 19  |  Size: 822 B

0
src/img/browsericons/icon19-16.png → platform/chromium/img/browsericons/icon19-16.png

Before

Width: 19  |  Height: 19  |  Size: 808 B

After

Width: 19  |  Height: 19  |  Size: 808 B

0
src/img/browsericons/icon19-17.png → platform/chromium/img/browsericons/icon19-17.png

Before

Width: 19  |  Height: 19  |  Size: 792 B

After

Width: 19  |  Height: 19  |  Size: 792 B

0
src/img/browsericons/icon19-18.png → platform/chromium/img/browsericons/icon19-18.png

Before

Width: 19  |  Height: 19  |  Size: 761 B

After

Width: 19  |  Height: 19  |  Size: 761 B

0
src/img/browsericons/icon19-19.png → platform/chromium/img/browsericons/icon19-19.png

Before

Width: 19  |  Height: 19  |  Size: 750 B

After

Width: 19  |  Height: 19  |  Size: 750 B

0
src/img/browsericons/icon19-2.png → platform/chromium/img/browsericons/icon19-2.png

Before

Width: 19  |  Height: 19  |  Size: 836 B

After

Width: 19  |  Height: 19  |  Size: 836 B

0
src/img/browsericons/icon19-3.png → platform/chromium/img/browsericons/icon19-3.png

Before

Width: 19  |  Height: 19  |  Size: 836 B

After

Width: 19  |  Height: 19  |  Size: 836 B

0
src/img/browsericons/icon19-4.png → platform/chromium/img/browsericons/icon19-4.png

Before

Width: 19  |  Height: 19  |  Size: 827 B

After

Width: 19  |  Height: 19  |  Size: 827 B

0
src/img/browsericons/icon19-5.png → platform/chromium/img/browsericons/icon19-5.png

Before

Width: 19  |  Height: 19  |  Size: 837 B

After

Width: 19  |  Height: 19  |  Size: 837 B

0
src/img/browsericons/icon19-6.png → platform/chromium/img/browsericons/icon19-6.png

Before

Width: 19  |  Height: 19  |  Size: 833 B

After

Width: 19  |  Height: 19  |  Size: 833 B

0
src/img/browsericons/icon19-7.png → platform/chromium/img/browsericons/icon19-7.png

Before

Width: 19  |  Height: 19  |  Size: 823 B

After

Width: 19  |  Height: 19  |  Size: 823 B

0
src/img/browsericons/icon19-8.png → platform/chromium/img/browsericons/icon19-8.png

Before

Width: 19  |  Height: 19  |  Size: 818 B

After

Width: 19  |  Height: 19  |  Size: 818 B

0
src/img/browsericons/icon19-9.png → platform/chromium/img/browsericons/icon19-9.png

Before

Width: 19  |  Height: 19  |  Size: 830 B

After

Width: 19  |  Height: 19  |  Size: 830 B

0
src/img/browsericons/icon19.png → platform/chromium/img/browsericons/icon19.png

Before

Width: 19  |  Height: 19  |  Size: 777 B

After

Width: 19  |  Height: 19  |  Size: 777 B

0
src/img/browsericons/icon38.png → platform/chromium/img/browsericons/icon38.png

Before

Width: 38  |  Height: 38  |  Size: 2.2 KiB

After

Width: 38  |  Height: 38  |  Size: 2.2 KiB

4
meta/chromium/manifest.json → platform/chromium/manifest.json

@ -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

@ -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

@ -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();
/******************************************************************************/
})();
/******************************************************************************/

0
tools/_locales/am/messages.json → src/_locales/am/messages.json

0
tools/_locales/ar/messages.json → src/_locales/ar/messages.json

0
tools/_locales/bg/messages.json → src/_locales/bg/messages.json

0
tools/_locales/bn/messages.json → src/_locales/bn/messages.json

0
tools/_locales/ca/messages.json → src/_locales/ca/messages.json

0
tools/_locales/cs/messages.json → src/_locales/cs/messages.json

0
tools/_locales/da/messages.json → src/_locales/da/messages.json

0
tools/_locales/de/messages.json → src/_locales/de/messages.json

0
tools/_locales/el/messages.json → src/_locales/el/messages.json

0
tools/_locales/en/messages.json → src/_locales/en/messages.json

0
tools/_locales/en_GB/messages.json → src/_locales/en_GB/messages.json

0
tools/_locales/es/messages.json → src/_locales/es/messages.json

0
tools/_locales/et/messages.json → src/_locales/et/messages.json

0
tools/_locales/fa/messages.json → src/_locales/fa/messages.json

0
tools/_locales/fi/messages.json → src/_locales/fi/messages.json

0
tools/_locales/fil/messages.json → src/_locales/fil/messages.json

0
tools/_locales/fr/messages.json → src/_locales/fr/messages.json

0
tools/_locales/gu/messages.json → src/_locales/gu/messages.json

0
tools/_locales/he/messages.json → src/_locales/he/messages.json

0
tools/_locales/hi/messages.json → src/_locales/hi/messages.json

0
tools/_locales/hr/messages.json → src/_locales/hr/messages.json

0
tools/_locales/hu/messages.json → src/_locales/hu/messages.json

0
tools/_locales/id/messages.json → src/_locales/id/messages.json

0
tools/_locales/it/messages.json → src/_locales/it/messages.json

0
tools/_locales/ja/messages.json → src/_locales/ja/messages.json

0
tools/_locales/kn/messages.json → src/_locales/kn/messages.json

0
tools/_locales/ko/messages.json → src/_locales/ko/messages.json

0
tools/_locales/lt/messages.json → src/_locales/lt/messages.json

0
tools/_locales/lv/messages.json → src/_locales/lv/messages.json

0
tools/_locales/ml/messages.json → src/_locales/ml/messages.json

0
tools/_locales/mr/messages.json → src/_locales/mr/messages.json

0
tools/_locales/ms/messages.json → src/_locales/ms/messages.json

0
tools/_locales/nb/messages.json → src/_locales/nb/messages.json

0
tools/_locales/nl/messages.json → src/_locales/nl/messages.json

0
tools/_locales/pl/messages.json → src/_locales/pl/messages.json

0
tools/_locales/pt_BR/messages.json → src/_locales/pt_BR/messages.json

0
tools/_locales/pt_PT/messages.json → src/_locales/pt_PT/messages.json

0
tools/_locales/ro/messages.json → src/_locales/ro/messages.json

0
tools/_locales/ru/messages.json → src/_locales/ru/messages.json

0
tools/_locales/sk/messages.json → src/_locales/sk/messages.json

0
tools/_locales/sl/messages.json → src/_locales/sl/messages.json

0
tools/_locales/sr/messages.json → src/_locales/sr/messages.json

0
tools/_locales/sv/messages.json → src/_locales/sv/messages.json

0
tools/_locales/sw/messages.json → src/_locales/sw/messages.json

0
tools/_locales/ta/messages.json → src/_locales/ta/messages.json

0
tools/_locales/te/messages.json → src/_locales/te/messages.json

0
tools/_locales/th/messages.json → src/_locales/th/messages.json

0
tools/_locales/tr/messages.json → src/_locales/tr/messages.json

0
tools/_locales/uk/messages.json → src/_locales/uk/messages.json

0
tools/_locales/vi/messages.json → src/_locales/vi/messages.json

0
tools/_locales/zh_CN/messages.json → src/_locales/zh_CN/messages.json

0
meta/chromium/icon_128.png → src/img/icon_128.png

Before

Width: 128  |  Height: 128  |  Size: 8.7 KiB

After

Width: 128  |  Height: 128  |  Size: 8.7 KiB

0
meta/chromium/icon_16.png → src/img/icon_16.png

Before

Width: 16  |  Height: 16  |  Size: 656 B

After

Width: 16  |  Height: 16  |  Size: 656 B

0
meta/chromium/icon_64.png → src/img/icon_64.png

Before

Width: 64  |  Height: 64  |  Size: 5.4 KiB

After

Width: 64  |  Height: 64  |  Size: 5.4 KiB

2
src/js/async.js

@ -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;

22
tools/make-chromium.sh

@ -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."
Loading…
Cancel
Save