Last active
December 15, 2015 14:48
-
-
Save dai-shi/5276584 to your computer and use it in GitHub Desktop.
AD,PRエントリを除去するフィルター #rsspipes
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
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