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/imgur/imgur.html | 83 ++++++++++++++++++++------------------ src/pages/options/imgur/imgur.js | 4 +- 2 files changed, 45 insertions(+), 42 deletions(-) (limited to 'src/pages/options/imgur') diff --git a/src/pages/options/imgur/imgur.html b/src/pages/options/imgur/imgur.html index 578ad70d..a769bd06 100644 --- a/src/pages/options/imgur/imgur.html +++ b/src/pages/options/imgur/imgur.html @@ -143,50 +143,53 @@
- -
-
-

Default Instances

-
-
-
-
-

Custom Instances

-
-
+
+
- - +

Default Instances

- -
-
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

+
+
+
+

Custom Instances

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

Default Instances

- -
+
+
+
+

Custom Instances

+
+
+
+ + +
+
+
+
@@ -196,4 +199,4 @@ - + \ No newline at end of file diff --git a/src/pages/options/imgur/imgur.js b/src/pages/options/imgur/imgur.js index 25fd8914..9742bfd2 100644 --- a/src/pages/options/imgur/imgur.js +++ b/src/pages/options/imgur/imgur.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