Topic

New Greasemonkey script: in-game feature search bar

Hi Glitch forum, I made this script and now I need some guinea pigs!  It adds a search bar that you can use to set your destination to nearby features. Please try it out and tell me what you think:

userscripts.org/scripts/sho...

Works in Firefox (with Greasemonkey) and Chrome (with Tampermonkey).  You need to be logged into Zog's Inventory of Ur for it to work.

Posted 12 months ago by Tuff Subscriber! | Permalink

Replies

  • I really like the look of this, but I cant get it to work. 
    I'm using Chrome, latest build, have tried re-starting the browser and all the usual stuff. 

    Any ideas?
    Posted 12 months ago by Mr LaserExplosion Subscriber! | Permalink
  • Use Firefox.
    Greasemonkey is a Firefox extension.
    Posted 12 months ago by WindBorn Subscriber! | Permalink
  • Awsum script mate!
    In-game display is the way :)
    @Wind Greasemonkey support is supposed to be built in Chrome by default from what I heard
    Posted 12 months ago by Lemo Subscriber! | Permalink
  • It won't run for me on Chrome either, but it sounds like a really/helpful idea. 
    Posted 12 months ago by heartNadia Subscriber! | Permalink
  • @Mr LaserExplosion, Lemo- Chrome has native userscript support, but not Greasemonkey support.  The script uses some methods that are only available to Greasemonkey.  It may be possible to make the script support Chrome as well, and I'll have a look later on, but at the moment it's Firefox-only.

    You could try using it with a Chrome extension called Tampermonkey, but I haven't tried it myself.
    Posted 12 months ago by Tuff Subscriber! | Permalink
  • Began using this in Firefox and it works very nicely, but I am unable to get it to work in Chrome yet.
    Thanks for this great script!
    Posted 12 months ago by PurpleLogic Subscriber! | Permalink
  • just installed it...will update with some feedback after I've used it a bit :D

    Works fast but multiple options would be great
    Also when I search the word "crab" I get no result
    Posted 12 months ago by ◘ ▪ Leï.Leï ▪ ◘ Subscriber! | Permalink
  • Hey, bumping this thread again because it's an awesome script, and more people should have a look at it !
    There's a bunch of glitchy websites, but I really like the idea of being able to add features to the game screen itself, customizing your own game experience.
    I almost don't know anything about greasemonkey or javascript, so could you share a bit of knowledge, and tell me if some of the features of my app could be ported to a greasemonkey overlay like yours?
    I doubt you can send keystrokes for the hotkeys part, but some of the map features could be really neat as a small script available for every browser
    Posted 11 months ago by Lemo Subscriber! | Permalink
  • ehhh, this isn't working on my mac running chrome -- thoughts?
    Posted 11 months ago by NicSTX Subscriber! | Permalink
  • I'm either stupid or this is not working for me. I'm on Chrome, got Tampermonkey and all, downloaded the script but no yellow thingie on the bottom-right. Any ideas?
    Posted 11 months ago by Pattonage Subscriber! | Permalink
  • oh didn't see the update from the 10th
    placing it at the bottom is better indeed :]
    can't help you guys, I'm using firefox
    Posted 11 months ago by Lemo Subscriber! | Permalink
  • boooo
    Posted 11 months ago by NicSTX Subscriber! | Permalink
  • I like this a lot, but the only way I can get it to show up is to set FF to accept cookies from third-party sites. I've allowed cookies from Zog, but that doesn't seem to do it -- are there others I'm missing..?
    Posted 11 months ago by Satu Subscriber! | Permalink
  • OK for Chrome, I tested it outside the game and it works, which is why I foolishly changed the userscript's description say Chrome supported. But it doesn't show up in game - I believe the button is being placed underneath the game's flash object.  I don't know how to get around this - z-index is ignored.

    So yeah, Firefox only :(  Unless you want to run it outside the game, but what good is that?

    @Satu, the script only talks to Glitch.com and Zog's site, so I'm not sure what's going on there.  Where's it failing, do you see any status message? (sanity check: make sure you're not using the old version that gets location data from tagurls)

    @Lemo, that thing you made looks awesome and I will take a better look when I've got some time. But, just off the top of my head I'm pretty certain that GM cannot direct keyboard events outside of the game object...my first idea with this script was to open the searchbox with a hotkey, but I found that to be impossible.  So I believe you would still need AHK to listen for hotkeys.
    Posted 11 months ago by Tuff Subscriber! | Permalink
  • Chrome users, it now works in Chrome, in the actual game (on Windows at least).  But I couldn't get the bar to appear above the game without changing the Flash rendering mode of the game object, and this does have a performance cost. It seemed fine for me while running around and filling my pig feeders, but just a heads up.
    Posted 11 months ago by Tuff Subscriber! | Permalink
  • Sorry I didn't get a chance to return to this thread since posting! It's working now, and the solution turned out to be to add glitch.com to my allowed sites. I thought it already had been, but obviously not. :D
    Posted 11 months ago by Satu Subscriber! | Permalink
  • I'll try this out when I get home and have access to my computer instead of just my phone. The performance cost discussed earlier worries me somewhat, though. How fine is fine?
    Posted 11 months ago by Shiromisa Kaya Subscriber! | Permalink
  • can someone post a screen shot 
    I'm just not seeing it in crome
    thanks
    Posted 11 months ago by Artilect Subscriber! | Permalink
  • it started working for me--thanks!
    Posted 11 months ago by Artilect Subscriber! | Permalink
  • Still not working for me
    Posted 11 months ago by NicSTX Subscriber! | Permalink
  • Works for me on Chrome, it lags in a weird way but it just might be my laptop's fault, it's not that quick anyways. Thanks Tuff!
    Posted 11 months ago by Pattonage Subscriber! | Permalink
  • @ Shiromisa Kaya, for the brief amount of time I played with it in Chrome, I didn't notice any difference. 

    @Pattonage, if by lag you mean that the search itself is slow, that's just the speed of the requests/replies made to the Inventory of Ur and Glitch.com - it won't have anything to do with the change I had to make to get the bar drawn on top of the game.

    Performance cost refers to the game's framerate (and doesn't apply in FF, just to clarify).

    @NicSTX, which browser and OS, and what do you see on screen, if anything?  In the Greasemonkey/Tampermonkey UI, can you ensure that the script is enabled and active on the target page (glitch.com/game)?
    Posted 11 months ago by Tuff Subscriber! | Permalink