Compatibility issues with AMP plugin
-
For my blog I use the AMP plugin from Google, which reports some compatibility issues with the WP QUADS plugin. Is it possible to solve these in your plugin?
You can find the reported issues below.
Thanks for your help,
Joost[ { "url": "https://www.eetman.nl/espresso-karamel-milkshake/", "type": "is_singular[post]", "label": "Bericht", "amp_url": "https://www.eetman.nl/espresso-karamel-milkshake/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-includes/js/jquery/jquery.min.js?ver=__normalized__", "id": "jquery-core-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads", "dependency_handle": "jquery-core" }, { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front", "dependency_handle": "jquery-core" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-includes/js/jquery/jquery-migrate.min.js?ver=__normalized__", "id": "jquery-migrate-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads", "dependency_handle": "jquery-migrate" }, { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front", "dependency_handle": "jquery-migrate" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "id": "quads_ads_front-js-extra" }, "text": "\n/* <![CDATA[ */\nvar quads_analytics = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n/* ]]> */\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "extra_key": "data", "text": "var quads_analytics = {\"ajax_url\":\"https:\\/\\/www.eetman.nl\\/wp-admin\\/admin-ajax.php\",\"quads_front_nonce\":\"85aaf4e474\"};", "handle": "quads_ads_front" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-content/plugins/quick-adsense-reloaded/assets/js/performance_tracking.min.js?ver=__normalized__", "id": "quads_ads_front-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": [], "text": "!function(e,n){__DOUBLE_QUOTED_STRING__==typeof define&&define.amd?define([],n(__DOUBLE_QUOTED_STRING__)):__DOUBLE_QUOTED_STRING__==typeof exports?module.exports=n(__DOUBLE_QUOTED_STRING__):e.adsenseLoader=n(__DOUBLE_QUOTED_STRING__)}(this,function(e){__DOUBLE_QUOTED_STRING__;var n=__INT__,t={laziness:__INT__,onLoad:!__INT__},o=function(e,n){var t,o={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t]);return o},r=function(e,n){var t,o;return function(){var r=this,a=arguments,i=+new Date;t&&i<t+e?(clearTimeout(o),o=setTimeout(function(){t=i,n.apply(r,a)},e)):(t=i,n.apply(r,a))}},a=[],i=[],s=[],d=function(){if(!a.length)return!__INT__;var e=window.pageYOffset,n=window.innerHeight;a.forEach(function(t){var o,r,d=(o=t,r=o.getBoundingClientRect(),{top:r.top+document.body.scrollTop,left:r.left+document.body.scrollLeft}).top,f=t._adsenseLoaderData.options.laziness+__INT__;if(d-e>n*f||e-d-t.offsetHeight-n*f>__INT__)return!__INT__;a=u(a,t),t._adsenseLoaderData.width=c(t),function(e,n){e.classList?e.classList.add(n):e.className+=__DOUBLE_QUOTED_STRING__+n}(t.querySelector(__DOUBLE_QUOTED_STRING__),__DOUBLE_QUOTED_STRING__),i.push(t),__DOUBLE_QUOTED_STRING__!=typeof adsbygoogle?function(e){(adsbygoogle=window.adsbygoogle||[]).push({});var n=e._adsenseLoaderData.options.onLoad;__DOUBLE_QUOTED_STRING__==typeof n&&e.querySelector(__DOUBLE_QUOTED_STRING__)&&e.querySelector(__DOUBLE_QUOTED_STRING__).addEventListener(__DOUBLE_QUOTED_STRING__,function(){n(e)})}(t):s.push(t)})},c=function(e){return parseInt(window.getComputedStyle(e,__DOUBLE_QUOTED_STRING__).getPropertyValue(__DOUBLE_QUOTED_STRING__).slice(__INT__,__INT__)||__INT__)},u=function(e,n){return e.filter(function(e){return e!==n})},f=function(e,n){return e._adsenseLoaderData={originalHTML:e.innerHTML,options:n},e.adsenseLoader=function(n){__DOUBLE_QUOTED_STRING__==n&&(a=u(a,e),i=u(i,e),s=u(i,e),e.innerHTML=e._adsenseLoaderData.originalHTML)},e};function l(e,n){__DOUBLE_QUOTED_STRING__==typeof e?e=document.querySelectorAll(e):void __INT__===e.length&&(e=[e]),n=o(t,n),[].forEach.call(e,function(e){e=f(e,n),a.push(e)}),this.elements=e,d()}return window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,d)),window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,d)),window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,function(){if(!i.length)return!__INT__;var e=!__INT__;i.forEach(function(n){n.querySelector(__DOUBLE_QUOTED_STRING__).classList.contains(__DOUBLE_QUOTED_STRING__)||n._adsenseLoaderData.width==c(n)||(e=!__INT__,i=u(i,n),n.innerHTML=n._adsenseLoaderData.originalHTML,a.push(n))}),e&&d()})),l.prototype={destroy:function(){this.elements.forEach(function(e){e.adsenseLoader(__DOUBLE_QUOTED_STRING__)})}},window.adsenseLoaderConfig=function(e){void __INT__!==e.throttle&&(n=e.throttle)},l});", "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/render-ad-functions.php", "line": 87, "function": "quads_common_head_code", "hook": "wp_head", "priority": 10 } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "src": "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/render-ad-functions.php", "line": 87, "function": "quads_common_head_code", "hook": "wp_head", "priority": 10 } ] }, { "node_name": "script", "parent_name": "body", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-content/plugins/quick-adsense-reloaded/assets/js/ads.js?ver=__normalized__", "id": "quads-admin-ads-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads" } ] } ], "stale": false }, { "url": "https://www.eetman.nl/cookiebeleid-eu/", "type": "is_singular[page]", "label": "Pagina", "amp_url": "https://www.eetman.nl/cookiebeleid-eu/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-includes/js/jquery/jquery.min.js?ver=__normalized__", "id": "jquery-core-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads", "dependency_handle": "jquery-core" }, { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front", "dependency_handle": "jquery-core" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-includes/js/jquery/jquery-migrate.min.js?ver=__normalized__", "id": "jquery-migrate-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads", "dependency_handle": "jquery-migrate" }, { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front", "dependency_handle": "jquery-migrate" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "id": "quads_ads_front-js-extra" }, "text": "\n/* <![CDATA[ */\nvar quads_analytics = {__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};\n/* ]]> */\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "extra_key": "data", "text": "var quads_analytics = {\"ajax_url\":\"https:\\/\\/www.eetman.nl\\/wp-admin\\/admin-ajax.php\",\"quads_front_nonce\":\"85aaf4e474\"};", "handle": "quads_ads_front" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-content/plugins/quick-adsense-reloaded/assets/js/performance_tracking.min.js?ver=__normalized__", "id": "quads_ads_front-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/reports/analytics.php", "line": 201, "function": "quads_admin_analytics::quads_frontend_enqueue", "hook": "wp_enqueue_scripts", "priority": 10, "dependency_type": "script", "handle": "quads_ads_front" } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": [], "text": "!function(e,n){__DOUBLE_QUOTED_STRING__==typeof define&&define.amd?define([],n(__DOUBLE_QUOTED_STRING__)):__DOUBLE_QUOTED_STRING__==typeof exports?module.exports=n(__DOUBLE_QUOTED_STRING__):e.adsenseLoader=n(__DOUBLE_QUOTED_STRING__)}(this,function(e){__DOUBLE_QUOTED_STRING__;var n=__INT__,t={laziness:__INT__,onLoad:!__INT__},o=function(e,n){var t,o={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t]);return o},r=function(e,n){var t,o;return function(){var r=this,a=arguments,i=+new Date;t&&i<t+e?(clearTimeout(o),o=setTimeout(function(){t=i,n.apply(r,a)},e)):(t=i,n.apply(r,a))}},a=[],i=[],s=[],d=function(){if(!a.length)return!__INT__;var e=window.pageYOffset,n=window.innerHeight;a.forEach(function(t){var o,r,d=(o=t,r=o.getBoundingClientRect(),{top:r.top+document.body.scrollTop,left:r.left+document.body.scrollLeft}).top,f=t._adsenseLoaderData.options.laziness+__INT__;if(d-e>n*f||e-d-t.offsetHeight-n*f>__INT__)return!__INT__;a=u(a,t),t._adsenseLoaderData.width=c(t),function(e,n){e.classList?e.classList.add(n):e.className+=__DOUBLE_QUOTED_STRING__+n}(t.querySelector(__DOUBLE_QUOTED_STRING__),__DOUBLE_QUOTED_STRING__),i.push(t),__DOUBLE_QUOTED_STRING__!=typeof adsbygoogle?function(e){(adsbygoogle=window.adsbygoogle||[]).push({});var n=e._adsenseLoaderData.options.onLoad;__DOUBLE_QUOTED_STRING__==typeof n&&e.querySelector(__DOUBLE_QUOTED_STRING__)&&e.querySelector(__DOUBLE_QUOTED_STRING__).addEventListener(__DOUBLE_QUOTED_STRING__,function(){n(e)})}(t):s.push(t)})},c=function(e){return parseInt(window.getComputedStyle(e,__DOUBLE_QUOTED_STRING__).getPropertyValue(__DOUBLE_QUOTED_STRING__).slice(__INT__,__INT__)||__INT__)},u=function(e,n){return e.filter(function(e){return e!==n})},f=function(e,n){return e._adsenseLoaderData={originalHTML:e.innerHTML,options:n},e.adsenseLoader=function(n){__DOUBLE_QUOTED_STRING__==n&&(a=u(a,e),i=u(i,e),s=u(i,e),e.innerHTML=e._adsenseLoaderData.originalHTML)},e};function l(e,n){__DOUBLE_QUOTED_STRING__==typeof e?e=document.querySelectorAll(e):void __INT__===e.length&&(e=[e]),n=o(t,n),[].forEach.call(e,function(e){e=f(e,n),a.push(e)}),this.elements=e,d()}return window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,d)),window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,d)),window.addEventListener(__DOUBLE_QUOTED_STRING__,r(n,function(){if(!i.length)return!__INT__;var e=!__INT__;i.forEach(function(n){n.querySelector(__DOUBLE_QUOTED_STRING__).classList.contains(__DOUBLE_QUOTED_STRING__)||n._adsenseLoaderData.width==c(n)||(e=!__INT__,i=u(i,n),n.innerHTML=n._adsenseLoaderData.originalHTML,a.push(n))}),e&&d()})),l.prototype={destroy:function(){this.elements.forEach(function(e){e.adsenseLoader(__DOUBLE_QUOTED_STRING__)})}},window.adsenseLoaderConfig=function(e){void __INT__!==e.throttle&&(n=e.throttle)},l});", "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/render-ad-functions.php", "line": 87, "function": "quads_common_head_code", "hook": "wp_head", "priority": 10 } ] }, { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "src": "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/render-ad-functions.php", "line": 87, "function": "quads_common_head_code", "hook": "wp_head", "priority": 10 } ] }, { "node_name": "script", "parent_name": "body", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript", "src": "https://www.eetman.nl/wp-content/plugins/quick-adsense-reloaded/assets/js/ads.js?ver=__normalized__", "id": "quads-admin-ads-js" }, "node_type": 1, "sources": [ { "type": "plugin", "name": "quick-adsense-reloaded", "file": "includes/template-functions.php", "line": 282, "function": "quads_adblocker_detector", "hook": "wp_head", "priority": 10, "dependency_type": "script", "handle": "quads-admin-ads" } ] } ], "stale": false } ]
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Compatibility issues with AMP plugin’ is closed to new replies.