Remove Mangadex Author Rate Limit

This commit is contained in:
db-2001 2024-04-18 17:33:08 -04:00
parent 3eb7b63fa6
commit 3b99dbd487
2 changed files with 0 additions and 10 deletions

View File

@ -131,7 +131,6 @@
</div> --> </div> -->
<div class="section-item dyn-height"> <div class="section-item dyn-height">
<span class="title"><img src="connector-icons/mangadex-logo.svg"><a href="https://mangadex.org">MangaDex</a></span> <span class="title"><img src="connector-icons/mangadex-logo.svg"><a href="https://mangadex.org">MangaDex</a></span>
<row><label for="mDexAuthorRL">Author Rate Limit:</label><input id="mDexAuthorRL" type="text"></row>
<row><label for="mDexFeedRL">Feed Rate Limit:</label><input id="mDexFeedRL" type="text"></row> <row><label for="mDexFeedRL">Feed Rate Limit:</label><input id="mDexFeedRL" type="text"></row>
<row><label for="mDexImageRL">Image Rate Limit:</label><input id="mDexImageRL" type="text"></row> <row><label for="mDexImageRL">Image Rate Limit:</label><input id="mDexImageRL" type="text"></row>
</div> </div>

View File

@ -40,7 +40,6 @@ const imageRL = document.querySelector("#imageRL");
const infoRL = document.querySelector("#infoRL"); const infoRL = document.querySelector("#infoRL");
//MangaDex Rate Limits //MangaDex Rate Limits
const mDexAuthorRL = document.querySelector("#mDexAuthorRL");
const mDexFeedRL = document.querySelector("#mDexFeedRL"); const mDexFeedRL = document.querySelector("#mDexFeedRL");
const mDexImageRL = document.querySelector("#mDexImageRL"); const mDexImageRL = document.querySelector("#mDexImageRL");
@ -158,7 +157,6 @@ function Setup(){
coverRL.placeholder = json.MangaCover + ' Requests/Minute'; coverRL.placeholder = json.MangaCover + ' Requests/Minute';
imageRL.placeholder = json.MangaImage + ' Requests/Minute'; imageRL.placeholder = json.MangaImage + ' Requests/Minute';
infoRL.placeholder = json.MangaInfo + ' Requests/Minute'; infoRL.placeholder = json.MangaInfo + ' Requests/Minute';
mDexAuthorRL.placeholder = json.MangaDexAuthor + ' Requests/Minute';
mDexFeedRL.placeholder = json.MangaDexFeed + ' Requests/Minute'; mDexFeedRL.placeholder = json.MangaDexFeed + ' Requests/Minute';
mDexImageRL.placeholder = json.MangaDexImage + ' Requests/Minute'; mDexImageRL.placeholder = json.MangaDexImage + ' Requests/Minute';
}); });
@ -530,7 +528,6 @@ defaultRL.addEventListener("keypress", (event) => { if(event.key === "Enter") Up
coverRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();}); coverRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
imageRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();}); imageRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
infoRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();}); infoRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
mDexAuthorRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
mDexFeedRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();}); mDexFeedRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
mDexImageRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();}); mDexImageRL.addEventListener("keypress", (event) => { if(event.key === "Enter") UpdateSettings();});
@ -558,7 +555,6 @@ function OpenSettings(){
coverRL.value = ""; coverRL.value = "";
imageRL.value = ""; imageRL.value = "";
infoRL.value = ""; infoRL.value = "";
mDexAuthorRL.value = "";
mDexFeedRL.value = ""; mDexFeedRL.value = "";
mDexImageRL.value = ""; mDexImageRL.value = "";
@ -573,7 +569,6 @@ function OpenSettings(){
coverRL.placeholder = json.MangaCover + ' Requests/Minute'; coverRL.placeholder = json.MangaCover + ' Requests/Minute';
imageRL.placeholder = json.MangaImage + ' Requests/Minute'; imageRL.placeholder = json.MangaImage + ' Requests/Minute';
infoRL.placeholder = json.MangaInfo + ' Requests/Minute'; infoRL.placeholder = json.MangaInfo + ' Requests/Minute';
mDexAuthorRL.placeholder = json.MangaDexAuthor + ' Requests/Minute';
mDexFeedRL.placeholder = json.MangaDexFeed + ' Requests/Minute'; mDexFeedRL.placeholder = json.MangaDexFeed + ' Requests/Minute';
mDexImageRL.placeholder = json.MangaDexImage + ' Requests/Minute'; mDexImageRL.placeholder = json.MangaDexImage + ' Requests/Minute';
}); });
@ -716,10 +711,6 @@ function UpdateSettings(){
UpdateRateLimit(6, infoRL.value); UpdateRateLimit(6, infoRL.value);
} }
if (mDexAuthorRL.value != "") {
UpdateRateLimit(5, mDexAuthorRL.value);
}
if (mDexFeedRL.value != "") { if (mDexFeedRL.value != "") {
UpdateRateLimit(1, mDexFeedRL.value); UpdateRateLimit(1, mDexFeedRL.value);
} }