Chrome: bypass options_ui

This commit is contained in:
Deathamns 2015-02-12 16:50:40 +01:00
parent 85bca2b3ee
commit bc7434cf5c
3 changed files with 24 additions and 22 deletions

View file

@ -41,7 +41,6 @@
"minimum_chrome_version": "22.0", "minimum_chrome_version": "22.0",
"options_page": "dashboard.html", "options_page": "dashboard.html",
"options_ui": { "options_ui": {
"chrome_style": true,
"page": "options_ui.html" "page": "options_ui.html"
}, },
"permissions": [ "permissions": [

View file

@ -1,23 +1,3 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <script src="js/vapi-client.js"></script>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<ul>
<li><a href="dashboard.html?tab=settings" data-i18n="settingsPageName" target="_blank"></a>
<li><a href="dashboard.html?tab=3p-filters" data-i18n="3pPageName" target="_blank"></a>
<li><a href="dashboard.html?tab=1p-filters" data-i18n="1pPageName" target="_blank"></a>
<li><a href="dashboard.html?tab=dyna-rules" data-i18n="rulesPageName" target="_blank"></a>
<li><a href="dashboard.html?tab=whitelist" data-i18n="whitelistPageName" target="_blank"></a>
<li><a href="dashboard.html?tab=about" data-i18n="aboutPageName" target="_blank"></a>
</ul>
<script src="js/vapi-common.js"></script> <script src="js/vapi-common.js"></script>
<script src="js/udom.js"></script>
<script src="js/i18n.js"></script>
</body>
</html>

View file

@ -29,6 +29,29 @@
'use strict'; 'use strict';
var fileName = 'options_ui.html';
if ( location.pathname.slice(-fileName.length) === fileName ) {
var messager = vAPI.messaging.channel('_open');
messager.send({
what: 'gotoURL',
details: {
url: 'dashboard.html',
index: -1
}
});
window.close();
}
})();
/******************************************************************************/
/******************************************************************************/
(function() {
'use strict';
self.vAPI = self.vAPI || {}; self.vAPI = self.vAPI || {};
var chrome = self.chrome; var chrome = self.chrome;