From 5d4377c081d18d89e64184c60d3fa97504768c81 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 12 Apr 2022 02:27:39 +0300 Subject: Restructuring Settings Structure --- src/pages/options/pixiv/pixiv.html | 87 ++++++++++++++++++++------------------ src/pages/options/pixiv/pixiv.js | 4 +- 2 files changed, 49 insertions(+), 42 deletions(-) (limited to 'src/pages/options/pixiv') diff --git a/src/pages/options/pixiv/pixiv.html b/src/pages/options/pixiv/pixiv.html index 8f153430..9ce7c1d8 100644 --- a/src/pages/options/pixiv/pixiv.html +++ b/src/pages/options/pixiv/pixiv.html @@ -135,7 +135,10 @@
-

Frontend: This isn't a fully private frontend

+

+ Frontend: This isn't a fully private frontend +

@@ -153,49 +156,53 @@
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

-
-
+
+
- - +

Default Instances

- -
-
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

+
+
+
+

Custom Instances

+
+
+
+ + +
+
+
-
+
+
+

Default Instances

+
+
+
- - +

Custom Instances

- -
+
+
+ + +
+
+
+
@@ -205,4 +212,4 @@ - + \ No newline at end of file diff --git a/src/pages/options/pixiv/pixiv.js b/src/pages/options/pixiv/pixiv.js index 0cefd1d2..a9a11e18 100644 --- a/src/pages/options/pixiv/pixiv.js +++ b/src/pages/options/pixiv/pixiv.js @@ -16,8 +16,8 @@ protocolElement.addEventListener("change", ); function changeProtocolSettings(protocol) { - let normalDiv = document.getElementById("normal"); - let torDiv = document.getElementById("tor"); + let normalDiv = document.getElementsByClassName("normal")[0]; + let torDiv = document.getElementsByClassName("tor")[0]; if (protocol == 'normal') { normalDiv.style.display = 'block'; torDiv.style.display = 'none'; -- cgit 1.4.1