From 1989b816a58284368a09fb8adb06b5a93199fc43 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Thu, 9 Mar 2023 14:13:22 -0600 Subject: [PATCH] updated newtab page, added script for invidious redirect --- buildfiles/newtabber/links.json | 13 +++++------ userscripts/redirect-pwr.js | 39 --------------------------------- userscripts/redirect-youtube.js | 16 ++++++++++++++ 3 files changed, 22 insertions(+), 46 deletions(-) delete mode 100644 userscripts/redirect-pwr.js create mode 100644 userscripts/redirect-youtube.js diff --git a/buildfiles/newtabber/links.json b/buildfiles/newtabber/links.json index d9867b1..babaf55 100644 --- a/buildfiles/newtabber/links.json +++ b/buildfiles/newtabber/links.json @@ -3,20 +3,19 @@ { "title": "Tildes", "url": "https://tildes.net/", "icon": "chat-dots" }, { "title": "RSS", "url": "https://rss.sitosis.com/", "icon": "rss" }, { "title": "Reddit", "url": "https://r.rdsm.ca/", "icon": "reddit" }, - { "title": "Ooh!Directory", "url": "https://ooh.directory/updated/", "icon": "bookmarks"}, + { "title": "Rudism Social", "url": "https://social.rudism.com/", "icon": "mastodon" }, { "title": "Email", "url": "https://app.fastmail.com/", "icon": "envelope" }, - { "title": "Notes", "url": "https://notes.sitosis.com", "icon": "journal-text" }, { "title": "Read", "url": "https://read.sitosis.com/", "icon": "book" }, { "title": "Bitwarden", "url": "https://pass.sitosis.com/", "icon": "fingerprint" }, { "title": "SQLPad", "url": "https://db.sitosis.com/", "icon": "database" }, { "title": "Router", "url": "https://router.ln0.us/", "icon": "router" }, { "title": "Wifi", "url": "https://home.ln0.us:8443/", "icon": "wifi" }, - + { "title": "Location", "url": "https://loc.sitosis.com/", "icon": "geo-alt-fill" }, { "title": "Jellyfin", "url": "https://home.ln0.us:8920/", "icon": "collection-play" }, { "title": "Nebula", "url": "https://nebula.app/myshows", "icon": "film" }, - { "title": "Twitch", "url": "https://twitch.tv/", "icon": "twitch" }, - { "title": "YouTube", "url": "https://www.youtube.com/feed/subscriptions", "icon": "youtube" }, - { "placeholder": true }, - { "placeholder": true } + { "title": "Invidious", "url": "https://yt.rdsm.ca/feed/subscriptions", "icon": "youtube" }, + { "title": "Audiobooks", "url": "https://rdsm.ca/audio", "icon": "cassette-fill" }, + { "title": "Pandora", "url": "https://www.pandora.com/", "icon": "music-note-list" }, + { "title": "Ooh!Directory", "url": "https://ooh.directory/updated/", "icon": "bookmarks"} ] diff --git a/userscripts/redirect-pwr.js b/userscripts/redirect-pwr.js deleted file mode 100644 index f63df51..0000000 --- a/userscripts/redirect-pwr.js +++ /dev/null @@ -1,39 +0,0 @@ -// ==UserScript== -// @name Redirect-Paywall-Reader -// @namespace code.sitosis.com -// @version 1.0 -// @description Rediret Paywall-Reader https://github.com/joshterrill/paywall-reader -// @author rudism -// @match https://www.nytimes.com/* -// @match https://cooking.nytimes.com/* -// @match https://nytimes.com/* -// @match https://www.newyorker.com/* -// @match https://newyorker.com/* -// @match https://www.economist.com/* -// @match https://economist.com/* -// @match https://www.washingtonpost.com/* -// @match https://washingtonpost.com/* -// @match https://www.latimes.com/* -// @match https://latimes.com/* -// @match https://www.theathletic.com/* -// @match https://theathletic.com/* -// @match https://www.businessinsider.com/* -// @match https://businessinsider.com/* -// @match https://www.bloomberg.com/* -// @match https://bloomberg.com/* -// @match https://www.vogue.com/* -// @match https://vogue.com/* -// @match https://www.atlantic.com/* -// @match https://atlantic.com/* -// @grant none -// @run-at document-start -// ==/UserScript== - -(function () { - 'use strict'; - if (top.location.pathname !== '/') { - var host = top.location.hostname.replace(/^www\./, ''); - var url = encodeURIComponent(top.location); - top.location=`https://p.rdsm.ca/read?source=${host}&url=${url}`; - } -})(); diff --git a/userscripts/redirect-youtube.js b/userscripts/redirect-youtube.js new file mode 100644 index 0000000..331aa01 --- /dev/null +++ b/userscripts/redirect-youtube.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name Redirect-YouTube +// @namespace code.sitosis.com +// @version 1.0 +// @description Rediret YouTube +// @author rudism +// @match https://www.youtube.com/* +// @match https://youtube.com/* +// @grant none +// @run-at document-start +// ==/UserScript== + +(function () { + 'use strict'; + top.location.hostname = "yt.rdsm.ca"; +})();