Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 3 of 3

This is a discussion on multi-site scriptlet is suppressed from "new tab" screen within the Chrome Troubleshooting section, part of the Google Chrome category: I like to use an "all" bookmark (using a bit of javascript) to open several websites, in several tabs, with ...


  1. #1
    trclocke is offline Junior Member
    Join Date
    Aug 2010
    Posts
    20

    Default multi-site scriptlet is suppressed from "new tab" screen

    I like to use an "all" bookmark (using a bit of javascript) to open several websites, in several tabs, with a single click. Here's a quick demo of what I'm talking about:
    Code:
    javascript:(function(){%20window.location=%22http://site.com%22;%20window.open('http://site.com');%20window.open('http://site.com');%20window.open('http://site.com');%20})();
    This works fine when accessing the bookmark from the bookmark manager, or when viewing any webpage. For some reason, though, if I try to run the "all" bookmark from chrome's "new tab" screen, it prevents all new tabs from opening (the window.open commands), and only redirects the current page (window.location). Is there anything I can do to allow multiple tabs to be opened from the "new tab" screen?

    p.s. I'm aware I can make a bunch of sites open as chrome loads. That's not what I'm looking for; I want to load the tabs on demand.
    Last edited by trclocke; 09-07-2010 at 11:11 PM. Reason: added proper code tags

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    Im on chrome 7.0.503.0 dev and your little bit of code is working fine on the NTP?
    Also another option is to just put your bookmarks in a folder, then right click on the folder and you can choose to open all bookmarks or open all bookmarks in a new window.

  3. #3
    trclocke is offline Junior Member
    Join Date
    Aug 2010
    Posts
    20

    Default

    ah. I'm on 6.0.472.53; maybe that's part of the problem.

    Actually, um, yeah. I just tested and it's working fine for me too now. I know I tried to get this to work, repeatedly, both via search engine keyword and via the bookmark toolbar. It was probably a week or so before it occurred to me to post on here, though, and there was a chrome 6.0 update since then. That release must have fixed my problem, I guess? I'm not sure what else it could have been.

    Anyway thanks for the reply here! Helpful as always
    Last edited by trclocke; 09-09-2010 at 12:27 AM. Reason: grammar fail

Similar Threads

  1. Replies: 4
    Last Post: 03-03-2010, 12:29 AM
  2. Storing global values / creating a "Settings" system
    By DavidTurnbull in forum Plugins Development
    Replies: 5
    Last Post: 02-13-2010, 03:47 AM
  3. Replies: 0
    Last Post: 02-02-2010, 06:56 PM
  4. Replies: 6
    Last Post: 09-26-2009, 04:57 PM
  5. Google Chrome "Load unpacked extension" Button Does Not Exist
    By chayimf in forum Plugins Troubleshooting
    Replies: 4
    Last Post: 09-05-2009, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •