Topic

Lx's userscripts

I occasionally write little scripts to modify bits of this site to my liking, and figured I'd post them here in case anyone else finds them useful. These have been tested and verified to work in Chrome (natively) and Firefox (under Greasemonkey), but should theoretically work in any modern browser that supports userscripts.

Glitch Online Buddies: Install | Screenshot
Applies to: http://www.glitch.com/profiles/*/friends/
– overhauls the display of the "Online buddies" section of Friends pages
   – reorders entries alphabetically by location name, making it easy to see when multiple friends are in the same location
   – groups new housing locations at the top (and fades out the name if the friend is on their own property)
   – distinguishes between separate instances of the same location (e.g. party spaces, Game of Crowns) when you have friends in more than one
– removes the "Connect with Facebook" section on your own Friends page
– hides the "Buddy list" section until you click, in order to speed up page loading

Glitch Ballot Results: Install | Screenshot
Applies to: http://www.glitch.com/ballot/*/results/
– reorders ballot results in descending order of votes
– shows percentage of votes cast for each candidate

Posted 9 months ago by Lx’s Ghost Subscriber! | Permalink

Replies

  • ++1
    Posted 9 months ago by !$Harrump$! Subscriber! | Permalink
  • Thanks Lx! I find both of them useful! 
    Posted 9 months ago by Kristen Marie Subscriber! | Permalink
  • :D Will install them! 
    Posted 9 months ago by Rook Subscriber! | Permalink
  • Awesome! 
    Posted 9 months ago by Rook Subscriber! | Permalink
  • <3
    Posted 9 months ago by muffin Subscriber! | Permalink
  • badass!
    Posted 9 months ago by tis Subscriber! | Permalink
  • nice! thanks!
    Posted 9 months ago by LokiPDX Subscriber! | Permalink
  • Since Glitch already uses jQuery, you should be able to inject the script directly without having to inject jQuery before that
    Posted 9 months ago by Boom and Bust Subscriber! | Permalink
  • LX you are awesome
    Posted 9 months ago by Snowpuff Subscriber! | Permalink
  • Thank you for sharing these Lx! I can see them both being a big help! :)
    Posted 9 months ago by Wynella Subscriber! | Permalink
  • Cool
    Posted 9 months ago by Tibbi Subscriber! | Permalink
  • Great, thanks Lx!
    Posted 9 months ago by Lazy Cubimal Subscriber! | Permalink
  • Very useful, excellent work!
    Posted 9 months ago by TomC Subscriber! | Permalink
  • Thanks, Lx!

    Can you make it to show two decimal points, instead of one? Right now there is a tie in the voting for wild animals, and probably a second decimal point would show some difference.
    Posted 9 months ago by Ximenez Subscriber! | Permalink
  • Ximenez: Since TS doesn't provide us with actual percentage values, my script calculates them based on the width of the bars... which means if two candidates are close enough that their bars are the exact same width, it can only see as much as you do: that they're effectively tied. So an extra digit wouldn't actually help you there. If there's any observable difference in width, one decimal point of precision would be enough to show that.
    Posted 9 months ago by Lx’s Ghost Subscriber! | Permalink
  • Oh, thanks Lx for the explanation. I was looking at the source code before I learned of your script, but didn't linked one to the other. I thought TS was including some more data in the API.
    Posted 9 months ago by Ximenez Subscriber! | Permalink
  • Love love love the new scripts!  Thanks!
    Posted 9 months ago by b3achy Subscriber! | Permalink
  • Alright, Im a noob to scripts and glitch. I installed greasemonkey but I have no idea how I install the scripts. Could someone please explain it to me?

    This is my 5th day of playing glitch and so far I love the game and community. So much to learn and explore.

    EDIT: Nevermind it finally worked when I clicked the install button, thanks
    Posted 9 months ago by Allurapre Subscriber! | Permalink
  • I especially lobe the friends script. It is so elegant. TS should change the regular page to this format. :)
    Posted 9 months ago by Tibbi Subscriber! | Permalink
  • Love the Glitch Online Buddies script Lx; it is brilliant! 
    Posted 9 months ago by Tinker Bell Subscriber! | Permalink
  • Lx, will your scripts work on mac?
    Posted 9 months ago by Peachesan Subscriber! | Permalink
  • Peachesan, the scripts are for browsers like Chrome or Firefox, so as long as your Mac has those it should work.
    Posted 9 months ago by TomC Subscriber! | Permalink
  • Yep, I'm a Mac user myself, so they definitely do :)
    Posted 9 months ago by Lx’s Ghost Subscriber! | Permalink
  • friends script is A+
    Posted 8 months ago by Fur Subscriber! | Permalink
  • You can, by clicking "show friends".
    Posted 8 months ago by Rook Subscriber! | Permalink
  • heh. i edited that out so now you look weird talking to yourself :D
    Posted 8 months ago by Fur Subscriber! | Permalink
  •  .
    Posted 8 months ago by Rook Subscriber! | Permalink
  • >:O
    Posted 8 months ago by Fur Subscriber! | Permalink
  • Nice Lx!
    Posted 8 months ago by Noenell Subscriber! | Permalink
  • cool. 
    Posted 8 months ago by Zubes Subscriber! | Permalink
  • nice!
    Posted 8 months ago by Sad Diablo Subscriber! | Permalink
  • this is cool buuut....I CAN'T UNINSTALL IT PLEASE HELP ME LX!!!!  :O
    Posted 8 months ago by FTW BACON!! Subscriber! | Permalink
  • yay!
    Posted 8 months ago by Demaria Subscriber! | Permalink
  • @Deathly, go to tools -> Extensions, and then see from there.
    Posted 8 months ago by Rook Subscriber! | Permalink
  • Where do I find tools or extensions?
    Posted 7 months ago by FTW BACON!! Subscriber! | Permalink
  • Are you using Google Chrome?
    Posted 7 months ago by TomC Subscriber! | Permalink
  • Yes.
    Posted 7 months ago by FTW BACON!! Subscriber! | Permalink
  • Oh wait, OH!  Thanks!  Just figured that out.  XD
    Posted 7 months ago by FTW BACON!! Subscriber! | Permalink