Inspired by this suggestion: https://www.torn.com/forums.php#/p=threads&f=4&t=16151603&b=0&a=0
The scripts filters chats by a given keyword(s). The filter is applied as you type. Keyword matching is case insensitive, i.e. 'xanax' will match 'Xanax'. Filters are stored per chat so next time you open a chat the filter will be there.
The initial request was for the Trade chat only. Since the activity in Trade chat is so high, the script would be useful if you are looking for something specific which may easily be missed without the filtering.
Currently, all chats are supported: Global, Trade, Faction, Company, Travel, Hospital, Jail, New Players.
Version 0.2.4 adds support for AND/OR rules in query: "sell Xanax" in double quotes means that a message must contain both words in this particular order to be shown. sell Xanax without quotes means that it's enough to contain either of the words.
Version 0.2.5 adds support for NOT filter: use ! in front of a word to filter it out: !buy will hide all messages that contain "buy".
Remember that you can use multiple rules in the filter string and combine them as you wish!
https://github.com/f2404/torn-userscripts/raw/master/chat_filter.user.js
[image: i.imgur.com]
The scripts filters chats by a given keyword(s). The filter is applied as you type. Keyword matching is case insensitive, i.e. 'xanax' will match 'Xanax'. Filters are stored per chat so next time you open a chat the filter will be there.
The initial request was for the Trade chat only. Since the activity in Trade chat is so high, the script would be useful if you are looking for something specific which may easily be missed without the filtering.
Currently, all chats are supported: Global, Trade, Faction, Company, Travel, Hospital, Jail, New Players.
Version 0.2.4 adds support for AND/OR rules in query: "sell Xanax" in double quotes means that a message must contain both words in this particular order to be shown. sell Xanax without quotes means that it's enough to contain either of the words.
Version 0.2.5 adds support for NOT filter: use ! in front of a word to filter it out: !buy will hide all messages that contain "buy".
Remember that you can use multiple rules in the filter string and combine them as you wish!
https://github.com/f2404/torn-userscripts/raw/master/chat_filter.user.js
[image: i.imgur.com]