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:
parent
7815455aca
commit
720794357c
@ -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>
|
||||
|
@ -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]
|
||||
};
|
||||
|
||||
|
@ -104,6 +104,8 @@ vAPI.i18n = function(s) {
|
||||
return this.i18nData[s] || '';
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user