mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-30 21:33:43 +03:00
Fix triggering on install, make popup buttons invisible (fewer resizes)
This commit is contained in:
parent
77a88e5778
commit
df1bb35e87
|
@ -31,10 +31,10 @@
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
.checked-radio-panel {
|
.checked-radio-panel {
|
||||||
display: none;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
input:checked ~ .checked-radio-panel {
|
input:checked ~ .checked-radio-panel {
|
||||||
display: inline;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
footer {
|
footer {
|
||||||
margin: 2em 1em 1em;
|
margin: 2em 1em 1em;
|
||||||
|
|
|
@ -139,7 +139,7 @@ chrome://extensions</a> ›
|
||||||
const li = document.createElement('li');
|
const li = document.createElement('li');
|
||||||
li.innerHTML = `<input type="radio" name="pacProvider" id="${providerKey}">
|
li.innerHTML = `<input type="radio" name="pacProvider" id="${providerKey}">
|
||||||
<label for="${providerKey}">${providerKey}</label>
|
<label for="${providerKey}">${providerKey}</label>
|
||||||
<a href class="link-button checked-radio-panel">[обновить]</a>`;
|
<a href class="link-button checked-radio-panel" id="update-${providerKey}">[обновить]</a>`;
|
||||||
li.querySelector('.link-button').onclick =
|
li.querySelector('.link-button').onclick =
|
||||||
() => {
|
() => {
|
||||||
conduct(
|
conduct(
|
||||||
|
@ -183,7 +183,8 @@ chrome://extensions</a> ›
|
||||||
|
|
||||||
setStatusTo('');
|
setStatusTo('');
|
||||||
if (antiCensorRu.ifFirstInstall) {
|
if (antiCensorRu.ifFirstInstall) {
|
||||||
currentProviderRadio().click();
|
const id = antiCensorRu.currentPacProviderKey || 'none';
|
||||||
|
document.querySelector('#update-' + id).click();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user