Post Reply 
I can't find the filter "Randomizers: Return Constant"
Oct. 22, 2006, 10:39 PM
Post: #6
RE: I can't find the filter "Randomizers: Return Constant"
In, Sidki's filter set, the web filter is a toggle that enables or disables the javascript intercept of Math.random().

Personally, I've never gotten around to adding a toggle for my js intercept.

Here's the js intercept code that I use:

Code:
//-----------------------------------
  
  // replace Math.random function
  
  Math.PrxRandom = Math.random;
  Math.random = function(){return 0};
  
  //-----------------------------------

This code is injected in the head section.

You can return any value you like (between 0&1).

Sidki's js returns 0.99999999999999 which makes it easy to spot in the log window when it's tacked onto a url for cache busting purposes.

Mike
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: I can't find the filter "Randomizers: Return Constant" - z12 - Oct. 22, 2006 10:39 PM

Forum Jump: