Instantly share code, notes, and snippets.

Embed
What would you like to do?
__d("AdsPrefsXout",
["cx","AdsTransparencyEvent","AdsTransparencyProduct","AdsTransparencyTypedLogger","AdsTransparencyXoutEvent","AdsTransparencyXoutProduct","AdsTransparencyXoutTypedLogger","DOM","EntstreamFeedObject","EventListener","ge"],
(function(a,b,c,d,e,f,g){
"use strict";
__p&&__p();
a = {
registerDropdownClick: function(a,c){
b("EventListener").listen(
a,
"click",
function(){
new(b("AdsTransparencyXoutTypedLogger"))().setEvent(b("AdsTransparencyXoutEvent").USER_ENGAGEMENT).setAdID(c).setProduct(b("AdsTransparencyXoutProduct").AD_DROPDOWN_BUTTON).log()})
},
registerDirectHideClick: function(a,c,d){b("EventListener").listen(a,"click",function(){new(b("AdsTransparencyXoutTypedLogger"))().setEvent(b("AdsTransparencyXoutEvent").USER_ENGAGEMENT).setAdID(c).setProduct(b("AdsTransparencyXoutProduct").AD_DIRECT_HIDE_BUTTON).log();
var e=b("DOM").create("div",{className:"_5lum"}),f=b("EntstreamFeedObject").getHscrollOuterRootIfAvailable(b("EntstreamFeedObject").getRoot(b("ge")(d)));
b("DOM").appendContent(e,a.getAttribute("data-action-in-progress-string"));
b("DOM").insertBefore(f.firstChild,e)})},
registerNuxDropdownClick:function(a,c){b("EventListener").listen(a,"click",function(){new(b("AdsTransparencyXoutTypedLogger"))().setEvent(b("AdsTransparencyXoutEvent").USER_ENGAGEMENT).setAdID(c).setProduct(b("AdsTransparencyXoutProduct").NUX_AD_BUTTON).log()})},
blockScriptClicks: function(a,c){
__p&&__p();
var d=!1;
b("EventListener").capture(a,"click",function(a){if(a.isTrusted===!1){
a.preventDefault();
a.stopPropagation();
if(d)return;
new(b("AdsTransparencyTypedLogger"))().setAdID(c).setEvent(b("AdsTransparencyEvent").ACTION_BLOCKED).setProduct(b("AdsTransparencyProduct").FEED_UNIT_CHEVRON_BUTTON).log();d=!0}})
}
};
e.exports=a
})
,null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment