Best Affilate Link cloaking plugin

Cloak Affiliate Links in WordPress – ThirstyAffiliates -1; } /* Disable tracking if the opt-out cookie exists. */ if ( __gaTrackerIsOptedOut() ) { window[disableStr] = true; } /* Opt-out function */ function __gaTrackerOptout() { document.cookie = disableStr + ‘=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/’; window[disableStr] = true; } if ( ‘undefined’ === typeof gaOptout ) { function gaOptout() { __gaTrackerOptout(); } } if ( mi_track_user ) { (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’__gaTracker’); __gaTracker(‘create’, ‘UA-24832575-1’, ‘auto’); __gaTracker(‘set’, ‘forceSSL’, true); __gaTracker(‘send’,’pageview’); } else { console.log( “” ); (function() { /* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */ var noopfn = function() { return null; }; var noopnullfn = function() { return null; }; var Tracker = function() { return null; }; var p = Tracker.prototype; p.get = noopfn; p.set = noopfn; p.send = noopfn; var __gaTracker = function() { var len = arguments.length; if ( len === 0 ) { return; } var f = arguments[len-1]; if ( typeof f !== ‘object’ || f === null || typeof f.hitCallback !== ‘function’ ) { console.log( ‘Not running function __gaTracker(‘ + arguments[0] + ” ….) because you are not being tracked. ” + mi_no_track_reason ); return; } try { f.hitCallback(); } catch (ex) { } }; __gaTracker.create = function() { return new Tracker(); }; __gaTracker.getByName = noopnullfn; __gaTracker.getAll = function() { return []; }; __gaTracker.remove = noopfn; window[‘__gaTracker’] = __gaTracker; })(); } ]]> 3) { fieldsArray = { hitType : ‘timing’, timingCategory : ‘Scroll Depth’, timingVar : action, timingValue : timing, timingLabel : label, nonInteraction: 1 }; MonsterInsightsObject.sendEvent( fieldsArray ); } } function calculateMarks(docHeight) { return { ‘25%’ : parseInt(docHeight * 0.25, 10), ‘50%’ : parseInt(docHeight * 0.50, 10), ‘75%’ : parseInt(docHeight * 0.75, 10), /* Cushion to trigger 100% event in iOS */ ‘100%’: docHeight – 5 }; } function checkMarks(marks, scrollDistance, timing) { /* Check each active mark */ $.each(marks, function(key, val) { if ( $.inArray(key, cache) === -1 && scrollDistance >= val ) { sendEvent(‘Percentage’, key, scrollDistance, timing); cache.push(key); } }); } function rounded(scrollDistance) { /* Returns String */ return (Math.floor(scrollDistance/250) * 250).toString(); } function init() { bindScrollDepth(); } /* * Public Methods */ /* Reset Scroll Depth with the originally initialized options */ $.scrollDepth.reset = function() { cache = []; lastPixelDepth = 0; $window.off(‘scroll.scrollDepth’); bindScrollDepth(); }; /* Add DOM elements to be tracked */ $.scrollDepth.addElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.merge(options.elements, elems); /* If scroll event has been unbound from window, rebind */ if (!scrollEventBound) { bindScrollDepth(); } }; /* Remove DOM elements currently tracked */ $.scrollDepth.removeElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.each(elems, function(index, elem) { var inElementsArray = $.inArray(elem, options.elements); var inCacheArray = $.inArray(elem, cache); if (inElementsArray != -1) { options.elements.splice(inElementsArray, 1); } if (inCacheArray != -1) { cache.splice(inCacheArray, 1); } }); }; /* * Throttle function borrowed from: * Underscore.js 1.5.2 * http://underscorejs.org * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Underscore may be freely distributed under the MIT license. */ function throttle(func, wait) { var context, args, result; var timeout = null; var previous = 0; var later = function() { previous = new Date; timeout = null; result = func.apply(context, args); }; return function() { var now = new Date; if (!previous) previous = now; var remaining = wait – (now – previous); context = this; args = arguments; if (remaining

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet_bg’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

[data-image-id=’gourmet’]

a),area[href*=”.jpeg”]:not(.nolightbox),a[href*=”.png”]:not(.nolightbox,li.nolightbox>a),area[href*=”.png”]:not(.nolightbox),a[href*=”.webp”]:not(.nolightbox,li.nolightbox>a),area[href*=”.webp”]:not(.nolightbox)’; jQuery(fb_IMG_select).addClass(‘fancybox image’); var fb_IMG_sections=jQuery(‘.gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery’); fb_IMG_sections.each(function(){jQuery(this).find(fb_IMG_select).attr(‘rel’,’gallery-‘+fb_IMG_sections.index(this));}); jQuery(‘a.fancybox,area.fancybox,li.fancybox a’).each(function(){jQuery(this).fancybox(jQuery.extend({},fb_opts,{‘transitionIn’:’elastic’,’easingIn’:’easeOutBack’,’transitionOut’:’elastic’,’easingOut’:’easeInBack’,’opacity’:false,’hideOnContentClick’:false,’titleShow’:true,’titlePosition’:’over’,’titleFromAlt’:true,’showNavArrows’:true,’enableKeyboardNav’:true,’cyclic’:false}))}); /* Inline */ jQuery(‘a.fancybox-inline,area.fancybox-inline,li.fancybox-inline a’).each(function(){jQuery(this).fancybox(jQuery.extend({},fb_opts,{‘type’:’inline’,’autoDimensions’:true,’scrolling’:’no’,’easingIn’:’easeOutBack’,’easingOut’:’easeInBack’,’opacity’:false,’hideOnContentClick’:false,’titleShow’:false}))}); /* YouTube */ jQuery(‘a[href*=”youtu.be/”],area[href*=”youtu.be/”],a[href*=”youtube.com/”],area[href*=”youtube.com/”]’).filter(function(){return this.href.match(//(?:youtu.be|watch?|embed/)/);}).not(‘.nolightbox,li.nolightbox>a’).addClass(‘fancybox-youtube’); jQuery(‘a.fancybox-youtube,area.fancybox-youtube,li.fancybox-youtube a’).each(function(){jQuery(this).fancybox(jQuery.extend({},fb_opts,{‘type’:’iframe’,’width’:1280,’height’:720,’padding’:20,’keepRatio’:1,’titleShow’:false,’titlePosition’:’float’,’titleFromAlt’:true,’onStart’:function(a,i,o){var splitOn=a[i].href.indexOf(“?”);var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):””;o.allowfullscreen=(urlParms.indexOf(“fs=0″)>-1)?false:true;o.href=a[i].href.replace(/https?://(?:www.)?youtu(?:.be/([^?]+)??|be.com/watch?(.*(?=v=))v=([^&]+))(.*)/gi,”https://www.youtube.com/embed/$1$3?$2$4&autoplay=1”);}}))});}; jQuery(‘a.fancybox-close’).on(‘click’,function(e){e.preventDefault();jQuery.fancybox.close()}); }; var easy_fancybox_auto=function(){setTimeout(function(){jQuery(‘#fancybox-auto’).trigger(‘click’)},1000);}; jQuery(easy_fancybox_handler);jQuery(document).on(‘post-load’,easy_fancybox_handler); jQuery(easy_fancybox_auto); ]]>
Source

Leave a Comment