AMP Compatibility Issue
-
Hello, in the Google AMP plugins, I get a message about the incompatibility of the plugin of some code with AMP.
With more and more pages being AMP, it might be worth considering compatibility. I get this message:
[ { "url": "https://totemat.pl/", "type": "is_home", "label": "Homepage", "amp_url": "https://totemat.pl/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true }, { "url": "https://totemat.pl/kategoria/lifestyle/", "type": "is_tax[category]", "label": "Kategoria", "amp_url": "https://totemat.pl/kategoria/lifestyle/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true }, { "url": "https://totemat.pl/tag/budyn/", "type": "is_tax[post_tag]", "label": "Tag", "amp_url": "https://totemat.pl/tag/budyn/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true }, { "url": "https://totemat.pl/author/tomhetm8plmanth/", "type": "is_author", "label": "Author Archive", "amp_url": "https://totemat.pl/author/tomhetm8plmanth/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true }, { "url": "https://totemat.pl/2022/", "type": "is_date", "label": "Date Archive", "amp_url": "https://totemat.pl/2022/?amp=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true }, { "url": "https://totemat.pl/?s=example", "type": "is_search", "label": "Search Results", "amp_url": "https://totemat.pl/?s=example&=1", "validation_errors": [ { "node_name": "script", "parent_name": "head", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": "\r\nfunction disableSelection(e){if(typeof e.onselectstart!=__DOUBLE_QUOTED_STRING__)e.onselectstart=function(){return false};else if(typeof e.style.MozUserSelect!=__DOUBLE_QUOTED_STRING__)e.style.MozUserSelect=__DOUBLE_QUOTED_STRING__;else e.onmousedown=function(){return false};e.style.cursor=__DOUBLE_QUOTED_STRING__}window.onload=function(){disableSelection(document.body)}\r\n", "node_type": 1, "sources": [ { "type": "plugin", "name": "copyproof-website", "file": "copyproof-website.php", "line": 25, "function": "tawhidurrahmandeartwo", "hook": "wp_head", "priority": 10 } ] } ], "stale": true } ]
The topic ‘AMP Compatibility Issue’ is closed to new replies.