Chrome Bookmark Not Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BaseballGraphs
    New Member
    • Sep 2010
    • 75

    Chrome Bookmark Not Working

    Hello,
    I've put together the following javascript that can be dragged and dropped to the favorites/bookmarks bar in Chrome (or any browser) and then when you click on it, it opens the links in the variable object:
    Code:
    javascript:(function(){ 
    var obj={"link1":"http://google.com", "link2":"http://yahoo.com"};
    for(key in obj){
    var val=obj[key];
    window.open(decodeURIComponent(val));
    } 
    })();
    The function seems to ordinarily work when there are other tabs open in Chrome. However, when I am on the "New Tab" tab in Chrome ( I am running on 15.0.874.106 ), the function does not seem to work. It simply does not open a page?

    Could it be that there is a problem with calling window.open from the "New Tab" tab?

    Additionally, when I check the console, I am getting this output:
    Code:
    i18n-values: Missing value for "ntp4_intro_url"
    Does anyone have any idea what might be wrong with my code or have any further information regarding this message I'm receiving in Chrome?

    Thanks so much for your assistance!
Working...