Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
erosman authored Dec 8, 2023
1 parent 8f7d614 commit 9e05e65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
33 changes: 11 additions & 22 deletions src/content/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -517,30 +517,21 @@ details.proxy > summary span:nth-of-type(2):empty::before {

/* ----- hide/show elements ----- */
details.proxy[data-type="direct"] :is(
[data-i18n="port"],
[data-id="port"],
[data-i18n="username"],
[data-id="username"],
[data-i18n="password"],
.password,
[data-i18n="country"],
[data-id="cc"],
[data-i18n="city"],
[data-id="city"],
[data-type="pac"],
.pac) {
[data-i18n="port"], [data-id="port"],
[data-i18n="username"], [data-id="username"],
[data-i18n="password"], .password,
[data-i18n="country"], [data-id="cc"],
[data-i18n="city"], [data-id="city"],
[data-type="pac"], .pac) {
opacity: 0.3;
pointer-events: none;
user-select: none;
}

details.proxy[data-type="pac"] :is(
[data-i18n="port"],
[data-id="port"],
[data-i18n="username"],
[data-id="username"],
[data-i18n="password"],
.password) {
[data-i18n="port"], [data-id="port"],
[data-i18n="username"], [data-id="username"],
[data-i18n="password"], .password) {
opacity: 0.3;
pointer-events: none;
user-select: none;
Expand All @@ -559,10 +550,8 @@ details.proxy:not([data-type="pac"]) :is([data-type="pac"], .pac) {
}

details.proxy[data-type="socks4"] :is(
[data-i18n="username"],
[data-id="username"],
[data-i18n="password"],
.password) {
[data-i18n="username"], [data-id="username"],
[data-i18n="password"], .password) {
opacity: 0.3;
pointer-events: none;
user-select: none;
Expand Down
4 changes: 2 additions & 2 deletions src/content/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ class Options {
return;
}

// --- check pac sting
if (obj.pac) {
// --- check store locally for active PAC
if (obj.active && obj.pac) {
const storeLocally = elem.querySelector('.pac input[type="checkbox"]');
if (storeLocally.checked) {
const str = await Proxies.getPAC(obj.pac);
Expand Down

0 comments on commit 9e05e65

Please sign in to comment.