Title: User-authored JavaScript found on page
Last modified: May 30, 2018

---

# User-authored JavaScript found on page

 *  Resolved [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/)
 * Hello, I am having issues with several of my AMP pages. Google Search Console
   reported that these pages contain user-authored Javascript and the problem only
   came up two days ago.
 * I have tested some of these pages with AMP validator and Google AMP test. Both
   reported that those pages are valid.
 * May I seek some assistance on this?
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fuser-authored-javascript-found-on-page-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/page/2/?output_format=md)

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10339584)
 * Hello [@nckai](https://wordpress.org/support/users/nckai/)
 * I have checked the URL which you have shared but there is no validation error.
 * But as you are saying the GSC showing the error can you please exact URL where
   the error is showing in GSC so I can check it.
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10339598)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/)! The URL I provided
   is one of those reported by GSC. Here’s another two with the similar issue.
 * [https://www.misstamchiak.com/forbidden-duck/amp/](https://www.misstamchiak.com/forbidden-duck/amp/)
   
   [https://www.misstamchiak.com/meet-4-meat/amp/](https://www.misstamchiak.com/meet-4-meat/amp/)
 * Thank you!
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10339704)
 * Hello [@nckai](https://wordpress.org/support/users/nckai/)
 * I have checked these URL as well but there are no validation errors.
 * I have tested the URL on Google amp test too but its also showing valid page.
 * Can you please wait 2,3 days so google can recrawl the pages again.
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10339712)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/)! Sure! I was
   wondering if recent updates broke something, causing these issues to appear. 
   Prior to that, everything was okay.
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10340183)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/), I think I might
   have found out what’s causing the issue.
 * I am using Really Simple SSL plugin and this line is embedded into the AMP pages.
 * <script>if (document.location.protocol != “https:”) {document.location = document.
   URL.replace(/^http:/i, “https:”);}</script><script type=’text/javascript’ async
   src=’[https://cdn.ampproject.org/v0.js’></script&gt](https://cdn.ampproject.org/v0.js’></script&gt);
 * Any workaround?
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10340217)
 * Hello [@nckai](https://wordpress.org/support/users/nckai/)
 * had you deactivated the SSL plugin? because there is no validations error on 
   your page.
 * Please let me know.
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10340241)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/), this is the
   page where I discovered the error.
 * [https://www.misstamchiak.com/sin-heng-kee/amp/](https://www.misstamchiak.com/sin-heng-kee/amp/)
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10340277)
 * Hello [@nckai](https://wordpress.org/support/users/nckai/)
 * Can you please check this URL on the validator using the amp validator because
   there is no error found.
 * you can use this link to test the page.
 * [https://validator.ampproject.org/](https://validator.ampproject.org/)
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10340300)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/), it should be
   okay now cos I fixed it with the solution found here:
 * [https://wordpress.org/support/topic/critical-error-custom-javascript-is-not-allowed/](https://wordpress.org/support/topic/critical-error-custom-javascript-is-not-allowed/)
 * My AMP Validator Chrome plugin detected the error but it is now cleared after
   I applied the fix. I am trying to find if there are other affected pages.
 * Just to share, I had 300+ pages with the issue when I made my first post here.
   Now, it has increased to over 800 pages.
 *  [My247restore](https://wordpress.org/support/users/my247restore/)
 * (@my247restore)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10342339)
 * Hello
 * I too am still having issues with javascript:
 * User-authored JavaScript found on page (Critical issue)
 * Example:
    [https://my24-7restoration.com/water-damage-laguna-hills-ca/amp/](https://my24-7restoration.com/water-damage-laguna-hills-ca/amp/)
 * Validator:
    [https://validator.ampproject.org/#url=https%3A%2F%2Fmy24-7restoration.com%2Fwater-damage-laguna-hills-ca%2Famp%2F](https://validator.ampproject.org/#url=https%3A%2F%2Fmy24-7restoration.com%2Fwater-damage-laguna-hills-ca%2Famp%2F)
 * I am having the same issue with site. I am using Really Simple SSL plugin for
   which they have now added a javascript redirect option. However, even though 
   google says my errored pages are eligible for amp the AMP validator is giving
   me javascript errors.
 * Obviously all my once visible AMP are no longer showing on mobile serps.
    -  This reply was modified 8 years ago by [My247restore](https://wordpress.org/support/users/my247restore/).
 *  [My247restore](https://wordpress.org/support/users/my247restore/)
 * (@my247restore)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10343183)
 * Nevermind,
 * I figured out what my issue was. My Hosting provider is GoDaddy
 * They were hiding a monitoring script that was not getting along with AMP.
 * <script>’undefined’=== typeof _trfq || (window._trfq = []);’undefined’=== typeof
   _trfd && (window._trfd=[]),_trfd.push({‘tccl.baseHost’:’secureserver.net’}),_trfd.
   push({‘ap’:’cpsh’},{‘server’:’p3plcpnl1022′}) // Monitoring performance to make
   your website faster. If you want to opt-out, please contact web hosting support.
   </script><script src=’[https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js’></script&gt](https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js’></script&gt);
 * The Fix for GoDaddy folks is to go to gateway.godaddy.com.
 * Next to your “cPanel Admin” button there are the three dots, click the dots and
   click “Help Us”
 * Choose “Opt Out”
 * Done.
 * This at least fixed java issues for just “AMP” validation.
 * Lets see how google reacts.
 *  [seemapabari](https://wordpress.org/support/users/seemapabari/)
 * (@seemapabari)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10343600)
 * Hello [@ampforwp](https://wordpress.org/support/users/ampforwp/)
 * All of the sites I manage are reporting “User-authored JavaScript found on page”
   in their GSC since early May. Here are some links
 * [https://fluxandformcustomjewellery.com/sapphire-engagement-rings/amp/](https://fluxandformcustomjewellery.com/sapphire-engagement-rings/amp/)
   
   [https://leckerslaw.com/social-media-rules-for-workplaces/amp/](https://leckerslaw.com/social-media-rules-for-workplaces/amp/)
   [https://equityoutplacementservices.com/independent-contractor/amp/](https://equityoutplacementservices.com/independent-contractor/amp/)
   [https://yorkcounselling.ca/co-signing-loans/amp/](https://yorkcounselling.ca/co-signing-loans/amp/)
 * When I test the pages no errors are detected. Can you assist with troubleshooting
   this?
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10343854)
 * Hello [@seemapabari](https://wordpress.org/support/users/seemapabari/), seems
   like you are having the same issue as me. I assume you are using Really Simple
   SSL plugin as well? Try out the solution in the link I provided above. That should
   help.
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10343856)
 * hello [@seemapabari](https://wordpress.org/support/users/seemapabari/)
 * Are you using the latest version of our plugin?[0.9.94]
 * If you are using Really Simple SSL plugin then deactivate the check if the issue
   persists or not.
 *  Thread Starter [nckai](https://wordpress.org/support/users/nckai/)
 * (@nckai)
 * [8 years ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/#post-10348936)
 * Just an update, after the fix, GSC reported that the pages with issue had dropped.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/page/2/?output_format=md)

The topic ‘User-authored JavaScript found on page’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [godaddy](https://wordpress.org/support/topic-tag/godaddy/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 21 replies
 * 7 participants
 * Last reply from: [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/user-authored-javascript-found-on-page-2/page/2/#post-10627188)
 * Status: resolved