You are either not logged in or not registered with our community. Click here to register.
 
August 18, 2017, 03:41:59 AM
Top RP Sites - Vote Daily

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Click here if you are having problems.
Default Wide Screen Beige Lilac Rainbow Black & Blue October Send us your theme!

Wiki Blogs Dicebot

Author Topic: Greasemonkey Script  (Read 34340 times)

0 Members and 1 Guest are viewing this topic.

Offline Sofia Grace

  • Do not fashion me into a maiden who needs saving from a dragon. I am the dragon, and I will eat you whole.
  • Dame
  • Enchanter
  • *
  • Join Date: May 2014
  • Location: New England
  • Gender: Female
  • My neck is open wide, begging for a fist around it
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #275 on: May 17, 2017, 09:46:28 PM »
I find them super handy for group games. Such an easy place to store the header code for each post.

Ugh, yes.  I keep all of my image headers for my roleplays, mentor-related stuff, etc. in my snippets.  I'd be lost without them.  @_@

Offline Sofia Grace

  • Do not fashion me into a maiden who needs saving from a dragon. I am the dragon, and I will eat you whole.
  • Dame
  • Enchanter
  • *
  • Join Date: May 2014
  • Location: New England
  • Gender: Female
  • My neck is open wide, begging for a fist around it
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #276 on: July 08, 2017, 12:52:43 PM »
Has anyone else been having issues with the Improver being weird the past few days? There's no longer a snippets link above the text box. Obviously I can still access them through the top menu but I thought it was odd.

Offline GypsyRose

  • 🌹🔥 Black velvet with that slow Southern style - a new religion to bring you to your knees - Black velvet, if you please.🔥🌹
  • Dame
  • Addict
  • *
  • Join Date: Aug 2008
  • Location: Minnesota, USA
  • Gender: Female
  • 🔥🌹 White lightning, bound to drive you wild 🌹🔥
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #277 on: July 08, 2017, 01:34:13 PM »
Check what you've called the snippets.  When this happens to me, it's because I've used a symbol, like '(' or '/'.  If you take these out, it should come back. :-)

Offline Sofia Grace

  • Do not fashion me into a maiden who needs saving from a dragon. I am the dragon, and I will eat you whole.
  • Dame
  • Enchanter
  • *
  • Join Date: May 2014
  • Location: New England
  • Gender: Female
  • My neck is open wide, begging for a fist around it
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #278 on: July 09, 2017, 11:27:56 PM »
It's not that the snippets themselves are disappearing... before, I had a little link just above the text box (to the right of where the emojis are) that said 'Snippets' which was this nifty little drop down menu.  I could just click on the title and it automatically pasted the text of the snippet into the text box.  Now that link is gone.  T___T

Offline GypsyRose

  • 🌹🔥 Black velvet with that slow Southern style - a new religion to bring you to your knees - Black velvet, if you please.🔥🌹
  • Dame
  • Addict
  • *
  • Join Date: Aug 2008
  • Location: Minnesota, USA
  • Gender: Female
  • 🔥🌹 White lightning, bound to drive you wild 🌹🔥
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #279 on: July 10, 2017, 04:39:47 AM »
Yes, that's what happens to me if I have anything other than letters or numbers or dashes in the titles of the snippets.  I'd suggest removing the last one you added, and see if it comes back.

Adding screenshots:

This is my normal post reply screen:



This is the snippet I added with characters other than letters, dashes, numbers:



This is what happens to the reply screen until that snippet is deleted.  Note the Snippets Link to the right of the 'Change Color' box is gone. Once the snippet with the symbols is deleted, the link comes back to the reply screen.

« Last Edit: July 10, 2017, 06:41:34 AM by GypsyRose »

Online Blythe

Re: Greasemonkey Script
« Reply #280 on: July 10, 2017, 01:30:28 PM »
There was a minor patch to E that broke a lot of things. Happened a few days ago. Very recent.

It is possible it may have affected Ssieth's script, though I can't be sure.

Offline Andronica

Re: Greasemonkey Script
« Reply #281 on: July 24, 2017, 07:10:25 PM »
There might be a bug with the"Add "All" link to bookmarks" option. After not using it for a few months, I just ticked the option today and I can see the [All] tag beside the threads in my bookmarks, but the "All" option doesn't appear in the thread itself, so I can't view the posts consecutively. :/

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #282 on: August 02, 2017, 06:07:18 AM »
There might be a bug with the"Add "All" link to bookmarks" option. After not using it for a few months, I just ticked the option today and I can see the [All] tag beside the threads in my bookmarks, but the "All" option doesn't appear in the thread itself, so I can't view the posts consecutively. :/


Hi,

I'm looking at this one at the moment (sorry for long delay but I was entirely absent from E).  Where would you normally expect the 'All' option to appear in the thread?

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #283 on: August 02, 2017, 06:10:37 AM »
It's not that the snippets themselves are disappearing... before, I had a little link just above the text box (to the right of where the emojis are) that said 'Snippets' which was this nifty little drop down menu.  I could just click on the title and it automatically pasted the text of the snippet into the text box.  Now that link is gone.  T___T

OK - sorry - I missed the fact taht some special characters broke snippets.  I've now added some code that strips out special characters from the ID of snippets and that might fix some of the problems.  I would generally advise avoiding skipping using anything other than numbers, letters, spaces and "-", "_" and "!".  Quotes and angle brackets might be especially problematic.  I'll look at doing a bit of a sweep and properly cleansing entries of special characters for both ID and name of snippets.

New version of the fixed script coming soon when I have got a few other bugs looked at

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #284 on: August 02, 2017, 06:36:56 AM »
OK - new version of the script is up.

All it has is minor bug fixes.  More coming as I get used to being here again :)

Offline Nymphadora

  • Tonks, if she were shy. The knitting Nymph.
  • Dame
  • Enchanter
  • *
  • Join Date: Aug 2013
  • Location: A Canadian in New York
  • Gender: Female
  • You can't take the sky from me.
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #285 on: August 02, 2017, 08:47:37 AM »
Welcome back, Ssieth!

Thanks for the updates!

Offline GypsyRose

  • 🌹🔥 Black velvet with that slow Southern style - a new religion to bring you to your knees - Black velvet, if you please.🔥🌹
  • Dame
  • Addict
  • *
  • Join Date: Aug 2008
  • Location: Minnesota, USA
  • Gender: Female
  • 🔥🌹 White lightning, bound to drive you wild 🌹🔥
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #286 on: August 02, 2017, 09:15:27 AM »
Thank you!  And let me say  'thanks' again for the script.  Snippets are especially wonderful!!!!

Offline Sofia Grace

  • Do not fashion me into a maiden who needs saving from a dragon. I am the dragon, and I will eat you whole.
  • Dame
  • Enchanter
  • *
  • Join Date: May 2014
  • Location: New England
  • Gender: Female
  • My neck is open wide, begging for a fist around it
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #287 on: August 02, 2017, 11:53:41 AM »
Thank you! <3

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #288 on: August 08, 2017, 08:56:49 AM »
OK - got a new version up with a new feature.... shoutbox substitutions....

The idea is to have a shorthand way of sending something to the shoutbox :)

So you can map ":myoos" to "https://elliquiy.com/forums/index.php?topic=230523.0" and typing :myoos replaces with your url :)

And so on...

You an find the settings for it in the shoutbox section of the script settings and it's just one line per substitution with a | character separating the text you want to swap out and the text you want to swap in.  So - for the example above:

Code: [Select]
:myoos|https://elliquiy.com/forums/index.php?topic=230523.0
:)

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #289 on: August 09, 2017, 05:51:51 AM »
And another update (to v1.29.0)...

I've added some code to make (currently) the notify/unnotify button work as an AJAX event rather than causing a whole page refresh.  You shouldn't really see any difference other than the page doesn't refresh when you click the button.  I plan to role the same code out for other buttons at some point, this is just the bridgehead :)

  ~~ Ssi

Online RampantDesires

  • Certified Sass-hat ❣ Tumblr Junkie ❣ Least Helpful Helper ❣ Queen of Procrastination
  • Oracle
  • Addict
  • *
  • Join Date: Mar 2010
  • Location: Georgia
  • Gender: Female
  • Will I ever be more than I've always been?
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #290 on: August 09, 2017, 06:03:06 AM »
I love you, I love you, I loooove you! belatedly linked because there might be kids in pictures on the walls :P  But I DO <3 you. Thank you for all the time you're putting into this.
« Last Edit: August 09, 2017, 06:04:18 AM by RampantDesires »

Offline Nymphadora

  • Tonks, if she were shy. The knitting Nymph.
  • Dame
  • Enchanter
  • *
  • Join Date: Aug 2013
  • Location: A Canadian in New York
  • Gender: Female
  • You can't take the sky from me.
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #291 on: August 09, 2017, 06:58:31 AM »
And another update (to v1.29.0)...

I've added some code to make (currently) the notify/unnotify button work as an AJAX event rather than causing a whole page refresh.  You shouldn't really see any difference other than the page doesn't refresh when you click the button.  I plan to role the same code out for other buttons at some point, this is just the bridgehead :)

  ~~ Ssi

You rock, Ssieth! Thanks for the time and work you are putting into the script!

When you have a moment, could you please explain this? I can sort of tell it will be a good thing but I'm not fully understanding it at the same time.

Thanks!!

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #292 on: August 09, 2017, 07:55:02 AM »
You rock, Ssieth! Thanks for the time and work you are putting into the script!

When you have a moment, could you please explain this? I can sort of tell it will be a good thing but I'm not fully understanding it at the same time.

Thanks!!

Ah - oops - I was on my way to a meeting and hurried that description somewhat.  So.. let me explain (I hope) better....

This version has just the one new change and it's a minor one that is more to prove to me that it _will_ work before I set about doing a wider change :)  It only effects the notify/unnotify button inside threads and it streamlines the user interface of how that works.

Normally when you click that button it has you reload the thread page to perform the actions and that can be a bit slow if you don't have a fast connection or have a really busy thread with lots of images and stuff.  My change has that happen in the background and the page not reloading (and so doesn't reload images at all) so it looks a bit faster and seemless to you and causes a little bit less strain (potentially) on the server. 

It shouldn't make much of a difference to how things work.  It should just make things a little more streamlined in user experience terms and maybe help reduce bandwidth usage and server load a little.

Note for web techie types: I know that the images etc will probably be cached in most instances so server-load/bandwidth for those won't be reduced but there are still some instances where images and other similar resources are re-fetched on a page load so there might be minor improvement for those instances.

Offline Nymphadora

  • Tonks, if she were shy. The knitting Nymph.
  • Dame
  • Enchanter
  • *
  • Join Date: Aug 2013
  • Location: A Canadian in New York
  • Gender: Female
  • You can't take the sky from me.
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 0
Re: Greasemonkey Script
« Reply #293 on: August 09, 2017, 07:59:24 AM »
Ah - oops - I was on my way to a meeting and hurried that description somewhat.  So.. let me explain (I hope) better....

This version has just the one new change and it's a minor one that is more to prove to me that it _will_ work before I set about doing a wider change :)  It only effects the notify/unnotify button inside threads and it streamlines the user interface of how that works.

Normally when you click that button it has you reload the thread page to perform the actions and that can be a bit slow if you don't have a fast connection or have a really busy thread with lots of images and stuff.  My change has that happen in the background and the page not reloading (and so doesn't reload images at all) so it looks a bit faster and seemless to you and causes a little bit less strain (potentially) on the server. 

It shouldn't make much of a difference to how things work.  It should just make things a little more streamlined in user experience terms and maybe help reduce bandwidth usage and server load a little.

Note for web techie types: I know that the images etc will probably be cached in most instances so server-load/bandwidth for those won't be reduced but there are still some instances where images and other similar resources are re-fetched on a page load so there might be minor improvement for those instances.

That helps! Thank you so much for taking a moment to explain it like that. :)

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #294 on: August 12, 2017, 06:57:41 PM »
Briefly, before I head to bed.... a new version and a new feature.

v1.30.0 brings 'Speech Styling'.  Basically you can use this to make speech stand out in posts.  So long as the speech is enclosed in double quotes - "".

The settings can be found in the "Style Speech" section of the settings menu and, by default, are set to style speech in blue :)
« Last Edit: August 12, 2017, 09:26:30 PM by Ssieth »

Offline Nowherewoman

  • That Elf Your Mother Should Have Warned You About
  • Oracle
  • Addict
  • *
  • Join Date: Aug 2014
  • Location: Still climbing that damn hill, rolling that rock.
  • Gender: Female
  • My Role Play Preferences
  • View My Rolls
  • Referrals: 2
Re: Greasemonkey Script
« Reply #295 on: August 12, 2017, 07:07:43 PM »
Yay for newly-resurgent Cabbit goodness!

Offline Andronica

Re: Greasemonkey Script
« Reply #296 on: August 12, 2017, 07:46:12 PM »
Was anything messed up for other users after the update? I went to test out the new speech styling in one of my threads and noticed all the places where I have changed font colour, style, and size have all been returned to default. Bold still seems unaffected though.

Also, I can no longer open spoilers. :/

Other than that the blue speech text is amazing. <3
« Last Edit: August 12, 2017, 07:48:28 PM by Andronica »

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #297 on: August 12, 2017, 09:28:26 PM »
Was anything messed up for other users after the update? I went to test out the new speech styling in one of my threads and noticed all the places where I have changed font colour, style, and size have all been returned to default. Bold still seems unaffected though.

Also, I can no longer open spoilers. :/

Other than that the blue speech text is amazing. <3

Yeah - that would be me making a stupid mistake. Thanks for spotting it :)

It should be fixed in v1.30.1 (which is now live) :)

Offline Andronica

Re: Greasemonkey Script
« Reply #298 on: August 12, 2017, 09:56:02 PM »
Awesome, thanks for the quick fix! :D

Offline SsiethTopic starter

Re: Greasemonkey Script
« Reply #299 on: August 12, 2017, 09:59:55 PM »
Awesome, thanks for the quick fix! :D

You're welcome :)  And thanks for spotting the bug :)