mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 02:14:52 +12:00
Chrome: bypass options_ui
This commit is contained in:
parent
86cae37cb6
commit
32ad9420de
|
@ -29,6 +29,29 @@
|
|||
|
||||
'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 || {};
|
||||
|
||||
var chrome = self.chrome;
|
||||
|
|
Loading…
Reference in a new issue