Welcome guest, is this your first visit? Create Account now to join.
Page 15 of 20 FirstFirst ... 51314151617 ... LastLast
Results 141 to 150 of 193

This is a discussion on [Ext/US] Chrome Gestures (modified) within the Chrome Plugins section, part of the Google Chrome category: I played around with it a little bit and had it working again however I noticed they changed the way ...


  1. #141
    Kryptyx is offline Member
    Join Date
    Jul 2009
    Posts
    59

    Default

    I played around with it a little bit and had it working again however I noticed they changed the way some things work. For example, window.open now opens a separate window not a tab and its blocked by default from the popup blocker. It really makes the down, right gesture near useless. I think they are doing this to moreless force us to use the tabs API, which is fine - but with these releases its hard to say what they want to make a standard.

  2. #142
    mark is offline Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Default

    Annoying to have to keep chasing Google's changes though - you might think Google would stop altering it with *every* update..!

    Especially as the gestures extension is so useful!
    Last edited by mark; 07-31-2009 at 01:29 PM.

  3. #143
    kingofthehuns is offline Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Default Next and Previous Links...

    ... added the "Follow the 'Next' and 'Previous' links" code, inspired by one of the the Firefox Mouse Gestures...

    I can now almost replace Firefox...

    I attached the modified ChromeGestures.users.js file in case you prefer not typing ( copy&paste ), but I also modified the 'previous page' and 'next page' gestures... Check the up+righ+down+left+down for help...

    Left the Debug variable in there in case something doesn't seem to be working, so it's easier to debug...

    You can also add / modify / replace the ChromeGestures.user.js file in ...Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\... directory...

    Cheers...

    Code :
    ...

    var getNextGesture = ["down","right"];
    var getPrevGesture = ["down","left"];

    ...

    const PREV_LINKWORD = "prev";
    const NEXT_LINKWORD = "next";
    const PREV_KEYWORDS = ["prev", "前へ"]; /* Japanese */
    const NEXT_KEYWORDS = ["next", "次へ"];

    var Debug = 0;

    function getNextPrevAction(LinkWord,KeyWords) {
    var doc = document;
    var links = doc.getElementsByTagName("link");
    var arefs = doc.links;
    var regexp = new RegExp("(?:" + KeyWords.join("|") + ")", "i");

    if(Debug){
    var win = window.open("about:blank","_blank",
    "directories=no,height=500,width=500,left=10,top=10,location=no,"+
    "menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no");
    win.document.write("<html><head><title>Debug</title></head>");
    win.document.write("Links = "+links.length);
    for (var i = 0; i < links.length; i++) win.document.write("<BR>Link "+i+" = "+links[i].href);
    win.document.write("<BR><BR>References = "+arefs.length);
    for (var i = 0; i < arefs.length; i++) win.document.write("<BR>ARef "+i+" = '"+arefs[i].textContent.match(regexp)+" : "+arefs[i].textContent+"' to "+arefs[i].href);
    win.document.write("<BR><BR>RegExp = '"+regexp+"'");
    }

    for (var i = 0; i < links.length; i++) {
    if (links[i].href &&
    links[i].hasAttribute("rel") &&
    links[i].getAttribute("rel").toLowerCase().indexOf(LinkWord) == 0){
    if(Debug){
    win.document.write("<BR><BR>Jumping to link page '"+links[i].href+"' ... </html>");
    }
    location.href=links[i].href;
    return;
    }
    }

    // second, we search for A tags
    for (i = 0; i < arefs.length; i++) {
    if (arefs[i].href &&
    arefs[i].textContent &&
    arefs[i].textContent.match(regexp)){
    if(Debug){
    win.document.write("<BR><BR>Jumping to page '"+arefs[i].href+"' ... </html>");
    }
    location.href=arefs[i].href;
    return;
    }
    }

    if(Debug){
    win.document.write("</html>");
    }
    }

    function getNextAction() {
    getNextPrevAction(NEXT_LINKWORD,NEXT_KEYWORDS);
    }

    function getPrevAction() {
    getNextPrevAction(PREV_LINKWORD,PREV_KEYWORDS);
    }

    ...

    myGestures[getNextGesture] = getNextAction;
    myGestures[getPrevGesture] = getPrevAction;

    ...

    registerForHelp(getNextGesture,"Find NEXT link and execute.",20,20,60,60);
    registerForHelp(getPrevGesture,"Find PREV link and execute.",80,20,60,60);
    Attached Files Attached Files

  4. #144
    Kryptyx is offline Member
    Join Date
    Jul 2009
    Posts
    59

    Default

    We haven't forgotten about this project!! lol.

    I think all 3 of us have been busy with some other things that we have not had the chance to get the extension back up to where we want it.

    Our plan is still the same though, migrate the creation of gestures to an object, provide a GUI for clients to add their own gestures, and use the chrome API for tab management.

    Right now the focus (when we get time to actually focus...lol) is to migrate the extension to the background page and use the communication API so we can call the right tab operations for new tabs, close tabs and possibly other things like swapping tabs.

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

    Default

    Sounds like exciting times ahead ;-)

  6. #146
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    Hey guys, just dropping by to say that I am still alive.
    I've been really busy with a video game programming competition as well as work.

    I'll have 2 weeks of vacation starting next week so I'll have some time to maintain ChromeGestures.

  7. #147
    jangxyz is offline Junior Member
    Join Date
    Aug 2009
    Posts
    1

    Default

    Hi, I was just looking for Gesture in Chrome, found out about the whole extensions, user scripts and development channel and stuff, tried it out.

    Reading the whole thread, I see that you guys have done a great job for this extension. Thank you.

    While you might be still discussing about the method for user customization, I'm interested in the chrome APIs. To really convert to Chrome from Firefox, I want to use most of the gestures I've been using in FF, and it looks like I need the API (like changing to the next Tab, splitting the tab into a new window, minimizing and stuff).

    There were comments in the user.js file (1.0.7) about 'Support for Chrome API will be added when communication is back', and I've read a post that it is actually back, does that mean I can use it now?

    I don't really know about Chrome APIs, but I guess reading the reference will enlighten me. Are all those 'communications' and 'Google APIs' mean the reference pages in Chromium Developor Documentation, perhaps on Windows or Tabs page?
    If so, do I have to read everything and start poking here and there myself or do you guys have some other things getting ready?

    I don't mind a bit of programming, but it would be better if I don't have to do it all by myself.
    Thanks.

  8. #148
    OpenNingia is offline Senior Member
    Join Date
    Jul 2009
    Posts
    123

    Default

    Quote Originally Posted by Kyrax View Post
    Hey guys, just dropping by to say that I am still alive.
    I've been really busy with a video game programming competition as well as work.

    I'll have 2 weeks of vacation starting next week so I'll have some time to maintain ChromeGestures.
    Cool how is your video game?

  9. #149
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    In teams of 4, we had to make one in 36 hours, during 1 weekend, no sleep.
    You can see the various games on http://www.bivouacurbain.com/competi...-2009/?lang=fr (french only, sorry)

    Our game is called Reflexion and I'm quite satisfied of the result considering we didn't go with Flash or any "easy" solution.
    The theme was " Antithesis ". It was announced at the very beginning of the 36 hours.

    --
    In order to keep this thread on topic, if you want info or want to give some comments, send me a PM
    Thanks
    Last edited by Kyrax; 08-13-2009 at 12:39 PM.

  10. #150
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    and

    The first prize was awarded to the team Bar, jazz and poetry with his game Repercussion.
    (kindly translated by Google :-) )

Page 15 of 20 FirstFirst ... 51314151617 ... 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, 12:38 AM
  3. Chrome Custom Mouse Gestures
    By Laoguy in forum Chrome Plugins
    Replies: 6
    Last Post: 04-15-2009, 05: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
  •