Doodle God Filter

Tries to save you from Doodle God talk on Kongregate!

  1. // ==UserScript==
  2. // @name Doodle God Filter
  3. // @author BobTheCoolGuy
  4. // @description Tries to save you from Doodle God talk on Kongregate!
  5. // @include http://www.kongregate.com/games/*/*
  6. // @homepage
  7. // @version 0.0.1.20160306135351
  8. // @namespace https://greasyfork.org/users/32649
  9. // ==/UserScript==
  10. if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname))
  11. setTimeout(function() {
  12. var matcher = /element|do+[dle]{1,3}|(\+[\s\S]*?[?=])/i
  13. unsafeWindow.holodeck.addIncomingMessageFilter(function(s,e){if(matcher.test(s))e("");else e(s);});
  14. }, 1250)