{"id":8124,"date":"2015-11-27T03:33:28","date_gmt":"2015-11-27T03:33:28","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/27\/why-is-the-ublock-chrome-extension-blocking-my-javascript-open-source-projects-chrisaljoudi-ublock\/"},"modified":"2022-08-30T15:03:00","modified_gmt":"2022-08-30T15:03:00","slug":"why-is-the-ublock-chrome-extension-blocking-my-javascript-open-source-projects-chrisaljoudi-ublock","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/27\/why-is-the-ublock-chrome-extension-blocking-my-javascript-open-source-projects-chrisaljoudi-ublock\/","title":{"rendered":"Why is the uBlock Chrome extension blocking my JavaScript?-open source projects chrisaljoudi\/uBlock"},"content":{"rendered":"<p>I&#8217;m writing a JavaScript web application that has a search form and loads a Highcharts chart. I&#8217;m not using a framework, just plain jQuery and JavaScript classes.<\/p>\n<p>But when I try to load the page in Chrome I get: <code>Failed to load resource: net::ERR_BLOCKED_BY_CLIENT<\/code><\/p>\n<p>If I go to the muBlock uBlock extension (which I really like generally) and whitelist the script, it works OK.<\/p>\n<p>But why is uBlock blocking my JavaScript? It&#8217;s not an advertisement script nor intended to be &#8211; it just reads the hash and sets up a web form, then handles click events to fetch some data from the same domain via Ajax and set up a highcharts chart. None of the classes or methods are called <code>advert<\/code>, <code>ad<\/code> or anything similar.<\/p>\n<p>It&#8217;s possible that the code is doing something dangerous that I haven&#8217;t spotted, but how can I figure out what this is?<\/p>\n<p>Apologies, I know it would be good to post a link to the code here, but I can&#8217;t do that just yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing a JavaScript web application that has a search form and loads a Highcharts chart. I&#8217;m not using a framework, just plain jQuery and JavaScript classes. But when I try to load the page in Chrome I get: Failed to load resource: net::ERR_BLOCKED_BY_CLIENT If I go to the muBlock uBlock extension (which I really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8124","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8124"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8124\/revisions"}],"predecessor-version":[{"id":8602,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8124\/revisions\/8602"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}