addEventListener-defuser conversion

patrickdrd

New Member
is there any way this is converted to work with AG?

Code:
kingbet.net##+js(addEventListener-defuser.js, /cut|copy|paste/)
 

patrickdrd

New Member
I know, that's why I asked for conversion, can somebody convert this for me?
I'm enabling copy, which is by default disabled
 

avatar

Administrator
Staff member
Administrator
We're going to start automatically converting some of the uBO scriptlets to our syntax in the future updates.
Making an alternative for every scriptlet manually is just too hard.

I'll make an exception for this particular rule, though:)

Code:
kingbet.net#%#(function(){z=self.EventTarget.prototype.addEventListener;self.EventTarget.prototype.addEventListener=function(a,b){if(!/cut|copy|paste/.test(a.toString()))return z.apply(this,arguments)}})();
Please note that this sort of rules works only from if they're added to the user filter.
 

patrickdrd

New Member
it works great, thanks!

I thought there was an easy way to convert them and
in order to try the conversion myself,
but I see it's not easy
 
Top