Skip to content

Commit

Permalink
support Casted
Browse files Browse the repository at this point in the history
  • Loading branch information
LGiki committed Jan 18, 2023
1 parent 82ca301 commit b9fa4ed
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ A browser extension that makes podcast RSS displayed more friendly.
| Get Podcast | `getpodcast.xyz/data/*.xml` |
| Pod API | `host.podapi.xyz/*/feed.rss` |
| Tangsuan Radio | `feed.tangsuanradio.com/*.xml` |
| Casted | `feeds.casted.us/*/feed` |

# Acknowledgements

Expand Down
8 changes: 5 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Make podcast RSS displayed more friendly",
"author": "LGiki",
"homepage_url": "https://github.com/LGiki/nice-podcast-rss",
"version": "1.0.0.5",
"version": "1.0.0.6",
"icons": {
"16": "icons/icon-16.png",
"48": "icons/icon-48.png",
Expand Down Expand Up @@ -52,7 +52,8 @@
"*://feeds.npr.org/*/podcast.xml",
"*://rss.art19.com/*",
"*://omnycontent.com/d/playlist/*/podcast.rss",
"*://*.omnycontent.com/d/playlist/*/podcast.rss"
"*://*.omnycontent.com/d/playlist/*/podcast.rss",
"*://feeds.casted.us/*/feed"
],
"content_scripts": [
{
Expand Down Expand Up @@ -84,7 +85,8 @@
"*://feeds.npr.org/*/podcast.xml",
"*://rss.art19.com/*",
"*://omnycontent.com/d/playlist/*/podcast.rss",
"*://*.omnycontent.com/d/playlist/*/podcast.rss"
"*://*.omnycontent.com/d/playlist/*/podcast.rss",
"*://feeds.casted.us/*/feed"
],
"js": [
"lib/shikwasa.min.js",
Expand Down
2 changes: 1 addition & 1 deletion podcast-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ const generatePodcastPage = (podcast) => {

const printExtensionInfo = () => {
console.log(
'%c✨%c Nice Podcast RSS v1.0.0.5 %c https://github.com/LGiki/nice-podcast-rss',
'%c✨%c Nice Podcast RSS v1.0.0.6 %c https://github.com/LGiki/nice-podcast-rss',
'background-color:#bfd8bd;padding:4px;border-radius:4px 0 0 4px;',
'background-color:#77bfa3;padding:4px;color:#fff;border-radius:0 4px 4px 0;',
''
Expand Down
20 changes: 20 additions & 0 deletions rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,5 +578,25 @@
"main_frame"
]
}
},
{
"id": 30,
"priority": 1,
"action": {
"type": "modifyHeaders",
"responseHeaders": [
{
"header": "Content-Type",
"operation": "set",
"value": "text/plain;charset=UTF-8"
}
]
},
"condition": {
"urlFilter": "feeds.casted.us/*/feed",
"resourceTypes": [
"main_frame"
]
}
}
]

0 comments on commit b9fa4ed

Please sign in to comment.