Created
February 20, 2014 05:35
-
-
Save moyashi/9107616 to your computer and use it in GitHub Desktop.
EgoProwlで検索クエリに-noprowlが付いてたら対象にしないという改造
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
# 新設判定メソッド | |
def qualified_query?( query ) | |
if ( query.include?('-noprowl') ) | |
return false | |
else | |
return true | |
end | |
end | |
# get_saved_searchesの中 | |
if ( qualified_query?(obj['query']) ) | |
newKeys.push(obj['id']) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment