1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 02:42:41 +01:00

Safari: get appinfo from tooltip

This commit is contained in:
Deathamns 2014-12-21 18:48:43 +01:00
parent 7815455aca
commit 720794357c
3 changed files with 9 additions and 3 deletions

View File

@ -21,7 +21,7 @@
<key>Database Quota</key>
<real>52428800</real>
<key>Global Page</key>
<string>background.html#{appInfo}</string>
<string>background.html</string>
<key>Popovers</key>
<array>
<dict>
@ -40,8 +40,12 @@
<string>img/browsericons/icon16.png</string>
<key>Label</key>
<string>{name}</string>
<key>Palette Label</key>
<string>{name}</string>
<key>Popover</key>
<string>popover</string>
<key>Tool Tip</key>
<string>{name} {version}</string>
</dict>
</array>
</dict>

View File

@ -36,9 +36,9 @@ vAPI.safari = true;
/******************************************************************************/
vAPI.app = location.hash.slice(1).split(',');
vAPI.app = safari.extension.toolbarItems[0].toolTip.split(' ');
vAPI.app = {
name: decodeURIComponent(vAPI.app[0]),
name: vAPI.app[0],
version: vAPI.app[1]
};

View File

@ -104,6 +104,8 @@ vAPI.i18n = function(s) {
return this.i18nData[s] || '';
};
/******************************************************************************/
})();
/******************************************************************************/