Advertisement
Guest User

Auto Filter with alert

a guest
Nov 26th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Auto Filter Clicker w alert
  3. // @description Scans for and beeps on set text on the Mod Tools Chat window
  4. // @include http://tagpro-*.koalabeast.com/moderate/*
  5. // @author Carbon (Alert added by zilla)
  6. // @version 1.3
  7. // ==/UserScript==
  8.  
  9.  
  10. //Alter these to be notified on found text
  11. var alertWords = ["nigg","fag","!mods","cunt"];
  12.  
  13.  
  14. var refreshEnabled = false;
  15. if ( (window.location.pathname.indexOf("chat") > -1) ) {
  16.  
  17. $(".buttons").append("<button id='startAutoRefresh' class='small'>Start Auto Refresh</button>");
  18. $(".buttons").append("<button id='stopAutoRefresh' class='small'>Stop Auto Refresh</button>");
  19. document.getElementById("startAutoRefresh").addEventListener('click',function ()
  20. {
  21. document.getElementById("filterHours")[0].text = '30 seconds';
  22. document.getElementById("filterHours")[0].value = 0.008;
  23. refreshEnabled = true;
  24. console.log("*** Refreshing enabled ***");
  25. timeVar=setInterval(function() {
  26. autoRefresh();
  27. }, 5000);
  28.  
  29. });
  30. document.getElementById("stopAutoRefresh").addEventListener('click',function ()
  31. {
  32. document.getElementById("filterHours")[0].text = '15 minutes';
  33. document.getElementById("filterHours")[0].value = 0.25;
  34. console.log("*** Refreshing disabled ***");
  35. refreshEnabled = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement