remove unused autofil debug function

This commit is contained in:
Corban-Lee Jones 2024-07-23 20:55:42 +01:00
parent c7a6f69679
commit 0b80bfd958

View File

@ -394,50 +394,6 @@ $(document).on("selectedServerChange", async function() {
// #endregion
// Dev button (to be removed)
// auto fills dummy data into form fields to quickly create test subs
$("#devGenerateSub").on("click", function() {
const items = [
["BBC News · Top Stories", "http://feeds.bbci.co.uk/news/rss.xml"],
["BBC News · World", "http://feeds.bbci.co.uk/news/world/rss.xml"],
["BBC News · Entertainment", "http://feeds.bbci.co.uk/news/entertainment_and_arts/rss.xml"],
["BBC News · UK", "http://feeds.bbci.co.uk/news/uk/rss.xml"],
["BBC News · Business", "http://feeds.bbci.co.uk/news/business/rss.xml"],
["BBC News · Politics", "http://feeds.bbci.co.uk/news/politics/rss.xml"],
["BBC News · Health", "http://feeds.bbci.co.uk/news/health/rss.xml"],
["BBC News · Science", "http://feeds.bbci.co.uk/news/science_and_environment/rss.xml"],
["BBC News · Technology", "http://feeds.bbci.co.uk/news/technology/rss.xml"],
["BBC News · Education", "http://feeds.bbci.co.uk/news/education/rss.xml"],
["BBC News · England", "http://feeds.bbci.co.uk/news/england/rss.xml"],
["BBC News · Scotland", "http://feeds.bbci.co.uk/news/scotland/rss.xml"],
["BBC News · Wales", "http://feeds.bbci.co.uk/news/wales/rss.xml"],
["BBC News · Northern Ireland", "http://feeds.bbci.co.uk/news/northern_ireland/rss.xml"],
["BBC News · Europe", "http://feeds.bbci.co.uk/news/europe/rss.xml"],
["BBC News · Latin America", "http://feeds.bbci.co.uk/news/latin_america/rss.xml"],
["BBC News · US & Canada", "http://feeds.bbci.co.uk/news/us_and_canada/rss.xml"],
["BBC News · Middle East", "http://feeds.bbci.co.uk/news/middle_east/rss.xml"],
["BBC News · Asia", "http://feeds.bbci.co.uk/news/asia/rss.xml"],
["BBC News · Africa", "http://feeds.bbci.co.uk/news/africa/rss.xml"],
["BBC Sports", "https://news.bbc.co.uk/sport1/hi/help/rss/default.stm"],
["This Week in Self-Hosted", "https://selfh.st/rss/"],
["The Babylon Bee", "https://babylonbee.com/feed"],
["Reddit · r/memes", "https://reddit.com/r/memes/.rss"],
["Reddit · r/selfhosted", "https://reddit.com/r/selfhosted/.rss"],
["Sky News", "http://feeds.skynews.com/feeds/rss/home.xml"],
["Sky News · UK", "http://feeds.skynews.com/feeds/rss/uk.xml"],
["Sky News · Entertainment", "http://feeds.skynews.com/feeds/rss/entertainment.xml"],
["Sky News · Strange News", "http://feeds.skynews.com/feeds/rss/strange.xml"]
];
const selected = items[Math.floor(Math.random()*items.length)]
$("#subName").val(selected[0]);
$("#subUrl").val(selected[1]);
showToast("info", "Generated", "Picked random sub data");
});
// #region Delete Subscription Buttons
// Delete button on the 'edit subscription' modal