mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 16:47:15 +02:00
Safari: get appinfo from tooltip
This commit is contained in:
parent
7815455aca
commit
720794357c
@ -21,7 +21,7 @@
|
|||||||
<key>Database Quota</key>
|
<key>Database Quota</key>
|
||||||
<real>52428800</real>
|
<real>52428800</real>
|
||||||
<key>Global Page</key>
|
<key>Global Page</key>
|
||||||
<string>background.html#{appInfo}</string>
|
<string>background.html</string>
|
||||||
<key>Popovers</key>
|
<key>Popovers</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
@ -40,8 +40,12 @@
|
|||||||
<string>img/browsericons/icon16.png</string>
|
<string>img/browsericons/icon16.png</string>
|
||||||
<key>Label</key>
|
<key>Label</key>
|
||||||
<string>{name}</string>
|
<string>{name}</string>
|
||||||
|
<key>Palette Label</key>
|
||||||
|
<string>{name}</string>
|
||||||
<key>Popover</key>
|
<key>Popover</key>
|
||||||
<string>popover</string>
|
<string>popover</string>
|
||||||
|
<key>Tool Tip</key>
|
||||||
|
<string>{name} {version}</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</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 = {
|
vAPI.app = {
|
||||||
name: decodeURIComponent(vAPI.app[0]),
|
name: vAPI.app[0],
|
||||||
version: vAPI.app[1]
|
version: vAPI.app[1]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -104,6 +104,8 @@ vAPI.i18n = function(s) {
|
|||||||
return this.i18nData[s] || '';
|
return this.i18nData[s] || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user