Thibstars

gremlins_functions.js

Mar 25th, 2016
235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function hideAction() {
  2.     gremlins.species.clicker().clickTypes(['click', 'dblclick', 'mouseover', 'mousedown', 'mouseup','mousemove', 'mouseout'])
  3.     .showAction(function(x, y) {
  4.     // by default, the clicker gremlin shows its action by a red circle
  5.     // overriding showAction() with an empty function makes the gremlin action invisible
  6.   })
  7.   gremlins.species.scroller().showAction(function(x, y) {
  8.     // by default, the clicker gremlin shows its action by a red circle
  9.     // overriding showAction() with an empty function makes the gremlin action invisible
  10.   })
  11. }
  12.  
  13. function hideAction(species) {
  14.   species.showAction(function(x, y) {
  15.     // by default, the clicker gremlin shows its action by a red circle
  16.     // overriding showAction() with an empty function makes the gremlin action invisible
  17.   })
  18. }
  19.  
  20. //Checks if the current document contains at least one input field.
  21. function hasInputField() {
  22.   return document.getElementsByTagName("input")[0] != null;
  23. }
RAW Paste Data