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
/** | |
* Mark ALL episodes as Played in Overcast Web UI | |
* Requires https://github.com/stevegrunwell/overcast-mark-as-played | |
* | |
* This snippet is run in the JavaScript console on the Episodes list of a Podcast; | |
* it will read and click every Marked as Played button on every episode making | |
* a brief pause between clicks to avoid overloading the API server. | |
*/ | |
console.log('Getting initial button count'); | |
let count = document.querySelectorAll('.overcast-mark-as-played-btn').length; |
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
<?php | |
add_filter( | |
'cn_entry_output_category_item', | |
function( $content, $category, $count, $i, $properties, $instance ) { | |
global $wp_rewrite; | |
$text = ''; | |
$rel = is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ? 'rel="category tag"' : 'rel="category"'; | |
$entry = $instance->getObject(); |