Created
December 14, 2023 18:18
-
-
Save MohamedElashri/916b8b24ae63b9efa7d65f7dc2b4974f to your computer and use it in GitHub Desktop.
Add Github Repository Release to FreshRSS feed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
var pathArray = location.pathname.split('/'); | |
if(pathArray.length >= 3 && location.hostname === 'github.com') { | |
var owner = pathArray[1]; | |
var repo = pathArray[2]; | |
var githubFeedUrl = 'https://github.com/' + owner + '/' + repo + '/releases.atom'; | |
var freshRssUrl = '{freshrss_url_here}/i/?c=feed&a=add&url_rss=' + encodeURIComponent(githubFeedUrl); | |
window.open(freshRssUrl, '_blank').opener = null; | |
} else { | |
alert('Not a GitHub repository page'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment