diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-03-02 07:10:00 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-03-02 07:10:13 +0300 |
commit | 40e15e3570f0643ca813259234e2ff2414f080af (patch) | |
tree | 447b357a70fc002c55d11c8c3d2418c35f72e690 /src/pages | |
parent | Updated packages. Bump version to 1.4.6 (diff) | |
download | libredirect-40e15e3570f0643ca813259234e2ff2414f080af.zip |
Added a bypass watch on twitter button. Renamed some things
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/options/reddit/reddit.html | 2 | ||||
-rw-r--r-- | src/pages/options/twitter/twitter.html | 5 | ||||
-rw-r--r-- | src/pages/options/twitter/twitter.js | 6 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html index 4802b19d..d6776e9b 100644 --- a/src/pages/options/reddit/reddit.html +++ b/src/pages/options/reddit/reddit.html @@ -112,7 +112,7 @@ </div> <div class="some-block option-block"> - <h4>Bypass Watch On Reddit</h4> + <h4>Bypass Read on Reddit</h4> <input id="bypass-watch-on-reddit" type="checkbox" checked /> </div> diff --git a/src/pages/options/twitter/twitter.html b/src/pages/options/twitter/twitter.html index 02923641..a3151b43 100644 --- a/src/pages/options/twitter/twitter.html +++ b/src/pages/options/twitter/twitter.html @@ -102,6 +102,11 @@ </select> </div> + <div class="some-block option-block"> + <h4>Bypass Watch on Twitter</h4> + <input id="bypass-watch-on-twitter" type="checkbox" checked /> + </div> + <hr> <div id="normal"> diff --git a/src/pages/options/twitter/twitter.js b/src/pages/options/twitter/twitter.js index f76230fb..2d86d9a8 100644 --- a/src/pages/options/twitter/twitter.js +++ b/src/pages/options/twitter/twitter.js @@ -29,8 +29,14 @@ function changeProtocolSettings(protocol) { } } +let bypassWatchOnTwitterElement = document.getElementById("bypass-watch-on-twitter") +bypassWatchOnTwitterElement.addEventListener("change", + event => twitterHelper.setBypassWatchOnTwitter(event.target.checked) +); + twitterHelper.init().then(() => { disableTwitterElement.checked = !twitterHelper.getDisable(); + bypassWatchOnTwitterElement.checked = twitterHelper.getBypassWatchOnTwitter(); let protocol = twitterHelper.getProtocol(); protocolElement.value = protocol; |