Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Last active December 15, 2015 14:48
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 dai-shi/5276584 to your computer and use it in GitHub Desktop.
Save dai-shi/5276584 to your computer and use it in GitHub Desktop.
AD,PRエントリを除去するフィルター #rsspipes
function rssPipesFilterFunction(articles) {
var newArticles = [];
articles.forEach(function(article) {
if (article.title && article.title.lastIndexOf('AD:', 0) != 0 && article.title.lastIndexOf('PR:', 0) != 0) {
newArticles.push(article);
}
});
return newArticles;
}
/*
* Copyright (c) 2013 Daishi Kato
* Licensed under the MIT License
* http://www.opensource.org/licenses/mit-license.php
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment