Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Sigafoos
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sigafoos/bb453eec3a7c9401600a to your computer and use it in GitHub Desktop.
Save Sigafoos/bb453eec3a7c9401600a to your computer and use it in GitHub Desktop.
Tampermonkey to pull selected Overcast podcasts to the top of the page
// ==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'));
});
});
@Sigafoos
Copy link
Author

Sigafoos commented Jul 8, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment