From 55b2cdfa0bdfce22f85c747cf6c26ab4e2926519 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Fri, 21 Jan 2022 15:07:32 -0500 Subject: [PATCH] Add AME to LICENSES.md --- LICENSES.md | 26 +++++++++++++++++++++++++- src/AdvancedMuteEngine.js | 36 ++++++++++++++++++------------------ 2 files changed, 43 insertions(+), 19 deletions(-) diff --git a/LICENSES.md b/LICENSES.md index 4b5c6087..a8cc9e46 100644 --- a/LICENSES.md +++ b/LICENSES.md @@ -474,4 +474,28 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +=== Advanced Mute Engine === + +Advanced Mute Engine for TweetDeck +Copyright (c) 2017 pixeldesu + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/src/AdvancedMuteEngine.js b/src/AdvancedMuteEngine.js index 3227a4b8..d675cd3b 100644 --- a/src/AdvancedMuteEngine.js +++ b/src/AdvancedMuteEngine.js @@ -36,17 +36,17 @@ import { getPref, setPref } from "./StoragePreferences"; const AMEFilters = { NFT_AVATAR: 'BTD_nft_avatar', - IS_RETWEET_FROM: 'BTD_is_retweet_from', - MUTE_USER_KEYWORD: 'BTD_mute_user_keyword', - REGEX_DISPLAYNAME: 'BTD_mute_displayname', - REGEX: 'BTD_regex', - USER_REGEX: 'BTD_user_regex', - MUTE_QUOTES: 'BTD_mute_quotes', - USER_BIOGRAPHIES: 'BTD_user_biographies', - DEFAULT_AVATARS: 'BTD_default_avatars', - FOLLOWER_COUNT_LESS_THAN: 'BTD_follower_count_less_than', - FOLLOWER_COUNT_GREATER_THAN: 'BTD_follower_count_greater_than', - SPECIFIC_TWEET: 'BTD_specific_tweet', + // IS_RETWEET_FROM: 'BTD_is_retweet_from', + // MUTE_USER_KEYWORD: 'BTD_mute_user_keyword', + // REGEX_DISPLAYNAME: 'BTD_mute_displayname', + // REGEX: 'BTD_regex', + // USER_REGEX: 'BTD_user_regex', + // MUTE_QUOTES: 'BTD_mute_quotes', + // USER_BIOGRAPHIES: 'BTD_user_biographies', + // DEFAULT_AVATARS: 'BTD_default_avatars', + // FOLLOWER_COUNT_LESS_THAN: 'BTD_follower_count_less_than', + // FOLLOWER_COUNT_GREATER_THAN: 'BTD_follower_count_greater_than', + // SPECIFIC_TWEET: 'BTD_specific_tweet', } const nonUserSpecificsTypes = [ @@ -56,14 +56,14 @@ const nonUserSpecificsTypes = [ ]; const userSpecificTypes = [ - AMEFilters.DEFAULT_AVATARS, - AMEFilters.FOLLOWER_COUNT_GREATER_THAN, - AMEFilters.FOLLOWER_COUNT_LESS_THAN, - AMEFilters.MUTE_USER_KEYWORD, + // AMEFilters.DEFAULT_AVATARS, + // AMEFilters.FOLLOWER_COUNT_GREATER_THAN, + // AMEFilters.FOLLOWER_COUNT_LESS_THAN, + // AMEFilters.MUTE_USER_KEYWORD, AMEFilters.NFT_AVATAR, - AMEFilters.REGEX_DISPLAYNAME, - AMEFilters.USER_BIOGRAPHIES, - AMEFilters.USER_REGEX, + // AMEFilters.REGEX_DISPLAYNAME, + // AMEFilters.USER_BIOGRAPHIES, + // AMEFilters.USER_REGEX, ]; const muteTypeAllowlist = [...nonUserSpecificsTypes, ...userSpecificTypes];