mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13: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;
|
||||
}
|
||||
.checked-radio-panel {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
input:checked ~ .checked-radio-panel {
|
||||
display: inline;
|
||||
visibility: visible;
|
||||
}
|
||||
footer {
|
||||
margin: 2em 1em 1em;
|
||||
|
|
|
@ -139,7 +139,7 @@ chrome://extensions</a> ›
|
|||
const li = document.createElement('li');
|
||||
li.innerHTML = `<input type="radio" name="pacProvider" id="${providerKey}">
|
||||
<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 =
|
||||
() => {
|
||||
conduct(
|
||||
|
@ -183,7 +183,8 @@ chrome://extensions</a> ›
|
|||
|
||||
setStatusTo('');
|
||||
if (antiCensorRu.ifFirstInstall) {
|
||||
currentProviderRadio().click();
|
||||
const id = antiCensorRu.currentPacProviderKey || 'none';
|
||||
document.querySelector('#update-' + id).click();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user