Last active
August 29, 2015 14:24
-
-
Save Sigafoos/bb453eec3a7c9401600a to your computer and use it in GitHub Desktop.
Tampermonkey to pull selected Overcast podcasts to the top of the page
This file contains 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
// ==UserScript== | |
// @name Overcast Politics | |
// @namespace http://danconley.net | |
// @version 0.1 | |
// @description Sort podcasts by group | |
// @author Dan Conley | |
// @match https://overcast.fm/podcasts | |
// @grant none | |
// @require http://code.jquery.com/jquery-1.11.3.min.js | |
// ==/UserScript== | |
$(document).ready(function(){ | |
$('h2').first().before('<h2 class="ocseparatorbar">Politics</h2><div class="politics episodes"></div>'); | |
$($('.caption2:contains("Radio Dispatch"), .caption2:contains("Citizen Radio")').parents('.episodecell').get().reverse()).each(function(){ | |
$(this).detach().appendTo($('.politics')); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is pretty hard coded, obviously, but you should be able to convert it if you want to. I also use Media Keys For Overcast, which might change things?