Skip to content

Commit

Permalink
[spamtracker] Update regex used to detect smokey messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrybig committed Apr 7, 2019
1 parent dd69464 commit f8fafe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spamtracker/spamtracker.meta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Spamtracker
// @version 1.0.1
// @version 1.1.0
// @description Rewrite of the spamtracker project, this userscript will notify you using sound and a notification if a new spam post has been posted in any smoke detector supported rooms
// @author Ferrybig
// @match *://chat.meta.stackexchange.com/*
Expand Down
4 changes: 2 additions & 2 deletions spamtracker/spamtracker.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Spamtracker
// @version 1.0.1
// @version 1.1.0
// @description Rewrite of the spamtracker project, this userscript will notify you using sound and a notification if a new spam post has been posted in any smoke detector supported rooms
// @author Ferrybig
// @match *://chat.meta.stackexchange.com/*
Expand Down Expand Up @@ -558,7 +558,7 @@ unsafeWindow.Spamtracker = (function (target, siterooms, window, originalWindow)
if (!message || !message.children[1]) {
return false;
}
const smoke = /\/\/(goo.gl\/eLDYqh|Charcoal-SE\/SmokeDetector)/i;
const smoke = /\/\/(git.io\/vyDZv|Charcoal-SE\/SmokeDetector)/i;
const sePostRegex = /\/\/[a-z]*.stackexchange.com|stackoverflow.com|superuser.com|serverfault.com|askubuntu.com|stackapps.com|mathoverflow.net/i;
const content = message.children[1].innerHTML;
const textContent = message.children[1].textContent;
Expand Down

0 comments on commit f8fafe2

Please sign in to comment.