mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
34 lines
593 B
JavaScript
34 lines
593 B
JavaScript
'use strict';
|
|
|
|
window.utils = {
|
|
|
|
areSettingsNotControlledFor(details) {
|
|
|
|
return ['controlled_by_other', 'not_controllable']
|
|
.some( (prefix) => details.levelOfControl.startsWith(prefix) );
|
|
|
|
},
|
|
|
|
messages: {
|
|
|
|
searchSettingsForUrl(niddle) {
|
|
|
|
return 'chrome://settings/search#' + (chrome.i18n.getMessage(niddle) || niddle);
|
|
|
|
},
|
|
|
|
whichExtensionHtml() {
|
|
|
|
return chrome.i18n.getMessage('noControl') +
|
|
` <a href="${ this.searchSettingsForUrl('proxy') }">
|
|
${ chrome.i18n.getMessage('which') }
|
|
</a>`;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
window.apis = {};
|