Added Old Reddit #61
This commit is contained in:
parent
41e145bf7a
commit
a5415d34bc
|
@ -201,6 +201,8 @@ function redirect(url, type) {
|
|||
|
||||
if (type !== "main_frame" || url.pathname.match(bypassPaths)) return null;
|
||||
|
||||
if (frontend == 'old') return `${redirects.desktop}${url.pathname}${url.search}`;
|
||||
|
||||
let libredditInstancesList;
|
||||
let tedditInstancesList;
|
||||
if (protocol == 'normal') {
|
||||
|
|
|
@ -56,6 +56,7 @@ print('fetched Nitter')
|
|||
|
||||
# Bibliogram
|
||||
r = requests.get('https://bibliogram.art/api/instances')
|
||||
print(r.text)
|
||||
rJson = json.loads(r.text)
|
||||
bibliogramList = {}
|
||||
bibliogramList['normal'] = []
|
||||
|
|
|
@ -124,6 +124,7 @@
|
|||
<select id="reddit-frontend">
|
||||
<option value="libreddit">Libreddit</option>
|
||||
<option value="teddit">Teddit</option>
|
||||
<option value="old">Old Reddit</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -18,6 +18,10 @@ function changeFrontendsSettings(frontend) {
|
|||
libredditDivElement.style.display = 'none';
|
||||
tedditDivElement.style.display = 'block';
|
||||
}
|
||||
else if (frontend == 'old') {
|
||||
libredditDivElement.style.display = 'none';
|
||||
tedditDivElement.style.display = 'none';
|
||||
}
|
||||
}
|
||||
let redditFrontendElement = document.getElementById("reddit-frontend");
|
||||
redditFrontendElement.addEventListener("change",
|
||||
|
|
Loading…
Reference in New Issue