Page 19 of 20 FirstFirst ... 917181920 LastLast
Results 181 to 190 of 193

This is a discussion on [Ext/US] Chrome Gestures (modified) within the Chrome Plugins section, part of the Google Chrome category: Originally Posted by Waha Remember that those are modifications to the actual Chrome code, and have more access to modifications ...


  1. #181
    the wicked child is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default

    Quote Originally Posted by Waha View Post
    Remember that those are modifications to the actual Chrome code, and have more access to modifications than extensions do. ;P

    However, Wicked, it is possible. You can use chrome.tabs.getAllInWindow to get the list of tabs in the window (and iterate through them to find the position of each, and which is focused (though there's a function to get what's focused, it'd be more efficient to just us this one, in my opinion)). And use chrome.tabs.update to change what tab is in focus.
    Thanks for the info!

  2. #182
    the wicked child is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default

    Hmm. It seems that chrome.tabs is undefined. I noticed something at the top of the Tab API page that mentioned assigning a permission for tabs in the extension... however, I am using a script... is there anything special I have to do?

  3. #183
    the wicked child is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default

    I tried doing this with an extension and it still seems that chrome.tabs is undefined...

    manifest.json
    Code:
    {
       "content_scripts": [ {
          "js": [ "ChromeGestures.js" ],
          "matches": [ 
                       "http://*/*",
                       "https://*/*"
                     ]
       } ],
      "permissions": [
        "tabs"
      ],
       "description": "Execute commands with a simple gesture.",
       "format_version": 1,
       "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3",
       "name": "ChromeGestures",
       "version": "0.1"
    }
    Seems that should be correct.

    The line I am trying to call is this:
    Code:
    var tabs = chrome.tabs.getAllInWindow();
    Any suggestions what might be wrong?

  4. #184
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    You can only use chrome APIs from background pages and toolstrips.
    Note all gesture code has been moved to a background page in the latest version for this very reason.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  5. #185
    capsad is offline Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default Open Link in new tab?

    Hi,
    I have a question about all these mouse gestures extensions which exist for chrome: is it possible to open a link in a new tab with a mouse gesture? So that I can hover over a link and press the right mouse button and make a gesture and chrome opens the link in a new tab?
    That's the only thing that prevents me from switching from opera to chrome, because that's a feature I don't want to miss (i have a mouse with no middle-click). Last time I looked for such a feature I could not find it, is it now possible?
    Thanks in advance for your replies,
    Capsad

  6. #186
    mg2's Avatar
    mg2
    mg2 is offline Senior Member
    Join Date
    Jun 2009
    Location
    Karlsruhe, Germany, Europe
    Posts
    328

    Default

    I'm sure there was such an extension but i cannot find it

  7. #187
    mg2's Avatar
    mg2
    mg2 is offline Senior Member
    Join Date
    Jun 2009
    Location
    Karlsruhe, Germany, Europe
    Posts
    328

    Default

    What you can do is ctrl+click, or simply drag the link to the tab bar...

  8. #188
    capsad is offline Junior Member
    Join Date
    Nov 2009
    Posts
    4

    Default

    Hi,
    thanks for your reply, yex but I don't want to press CTRL when I want to open an new tab and I would like to open the tab in background - when I drag it to the tab bar it's in the foreground :/
    Capsad

  9. #189
    mg2's Avatar
    mg2
    mg2 is offline Senior Member
    Join Date
    Jun 2009
    Location
    Karlsruhe, Germany, Europe
    Posts
    328

    Default

    @capsad
    Ok, I made you an Autohotkey script that opens link in background tab on double right click

    Code:
    ~RButton::
    Send {Escape}
       If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500) {
          if WinActive("ahk_class Chrome_WindowImpl_0") {
    	Send, ^{LButton}
    	Send, {Escape}
    	}
    
       }
    else  Send {RButton} 
    return
    Last edited by mg2; 11-26-2009 at 11:02 PM.

  10. #190
    StevePaul's Avatar
    StevePaul is offline Senior Member
    Join Date
    Mar 2009
    Location
    Birmingham, England
    Posts
    1,522

    Default

    @capsad

    nkGestures (http://code.google.com/p/nk-gesture/downloads/list) has such a feature, its called 'drag and drop' ...

    By simply holding the mouse over the link and holding down the left mouse button and moving (dragging) the mouse in any direction it will open the link in a new tab ...

Page 19 of 20 FirstFirst ... 917181920 LastLast

Similar Threads

  1. Chrome Mouse Gestures?
    By Wisher in forum Chrome Plugins
    Replies: 40
    Last Post: 12-28-2010, 08:33 PM
  2. New Chrome Mouse Gestures Plugin (Rocker support)
    By OwenCM in forum Chrome Plugins
    Replies: 1
    Last Post: 05-06-2009, 01:38 AM
  3. Chrome Custom Mouse Gestures
    By Laoguy in forum Chrome Plugins
    Replies: 6
    Last Post: 04-15-2009, 06:52 AM

Tags for this Thread

Posting Permissions

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