You are either not logged in or not registered with our community. Click here to register.
 
October 02, 2023, 05:26:19 pm

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 Platinum Send us your theme!

Wiki Blogs Dicebot

Author Topic: TamperMonkey Script  (Read 190393 times)

0 Members and 1 Guest are viewing this topic.

Online SsiethTopic starter

Re: TamperMonkey Script
« Reply #950 on: August 23, 2023, 05:37:00 am »
New version: 1.54.0

  • The snippets menu no longer automatically updates after you edit/add/delete snippets.  This was breaking some things.  I'll get that working again in another release
  • You can now include %sel% inside a snippet (make sure that it's lowercase) and it will replace that bit with the selected text when you use the snippet.  If there is no selected text then it just puts the snippet in as usual

Sorting snippets - the good news is that you don't need to wait for me to do it.  From the menu: Script Settings / Sort Snippets.  That pops up a screen where you can choose alphabetic or custom.  Select custom and drag and drop them to where you want them.  The system should remember the ordering.  Categories still come before uncategorized snippets... extra feature to change this later on....

Offline Nymphadora

  • Tonks, if she were shy. The knitting Nymph. Nymphadorable. Nymphy ♥
  • Dame
  • Enchanter
  • *
  • Join Date: Aug 2013
  • Location: A Canadian in Brooklyn
  • Gender: Female
  • You can't take the sky from me.
  • View My Rolls
  • Referrals: 3
Re: TamperMonkey Script
« Reply #951 on: August 25, 2023, 09:57:08 am »
New version: 1.54.0

  • The snippets menu no longer automatically updates after you edit/add/delete snippets.  This was breaking some things.  I'll get that working again in another release
  • You can now include %sel% inside a snippet (make sure that it's lowercase) and it will replace that bit with the selected text when you use the snippet.  If there is no selected text then it just puts the snippet in as usual

Sorting snippets - the good news is that you don't need to wait for me to do it.  From the menu: Script Settings / Sort Snippets.  That pops up a screen where you can choose alphabetic or custom.  Select custom and drag and drop them to where you want them.  The system should remember the ordering.  Categories still come before uncategorized snippets... extra feature to change this later on....

You ROCK!

Offline FyreFoxx

  • Darkest Desires
  • Lady
  • Bacchae
  • *
  • Join Date: Apr 2020
  • Gender: Female
  • If you can't be good, at least be good at it.
  • View My Rolls
  • Referrals: 2
Re: TamperMonkey Script
« Reply #952 on: August 27, 2023, 03:05:59 pm »
How exactly does the word count.. well, count? I've noticed that the word count that the script records on posts does not match the word count in, say, Word, usually off by 2-5 words, sometimes more. It's not that big of a deal, of course, but something I noticed and wondered about on how it calculated the word count and what made it so different from the word count of Word or any other word processor.

Online SsiethTopic starter

Re: TamperMonkey Script
« Reply #953 on: August 27, 2023, 03:10:37 pm »
I suspect that Word does something cleverer than the script.  The script basically:

  • Takes the text of the post and replaces every group of whitespace characters (tabs, newlines, spaces etc) and replaces them with a single space
  • Splits the text up into an array of things separated by spaces (which is approximately an array of words)
  • Returns the count of items in that array

Offline Al Terego

  • Transformation aficionado & part-time autogynephile
  • Knight
  • Addict
  • *
  • Join Date: Sep 2014
  • Gender: Male
  • I come in peace
  • View My Rolls
  • Referrals: 5
Re: TamperMonkey Script
« Reply #954 on: September 09, 2023, 12:39:26 pm »
Hi SSieth!

Is it possible to display the bookmark tags on the bookmarks page (as another column for example)?

Online SsiethTopic starter

Re: TamperMonkey Script
« Reply #955 on: September 09, 2023, 01:30:28 pm »
Hi SSieth!

Is it possible to display the bookmark tags on the bookmarks page (as another column for example)?

So - for each bookmark, which tags it has?

Offline Al Terego

  • Transformation aficionado & part-time autogynephile
  • Knight
  • Addict
  • *
  • Join Date: Sep 2014
  • Gender: Male
  • I come in peace
  • View My Rolls
  • Referrals: 5
Re: TamperMonkey Script
« Reply #956 on: September 09, 2023, 03:07:15 pm »
So - for each bookmark, which tags it has?
Here are some examples: https://imgur.com/a/6vVpMHx

Online SsiethTopic starter

Re: TamperMonkey Script
« Reply #957 on: September 09, 2023, 03:13:06 pm »
Here are some examples: https://imgur.com/a/6vVpMHx

I think I could do something along those lines.   Would you want any particular behaviour for clicking the tags?

Offline Al Terego

  • Transformation aficionado & part-time autogynephile
  • Knight
  • Addict
  • *
  • Join Date: Sep 2014
  • Gender: Male
  • I come in peace
  • View My Rolls
  • Referrals: 5
Re: TamperMonkey Script
« Reply #958 on: September 09, 2023, 03:34:04 pm »
Hmmm, good question.

Reality manipulation would be nice, but I'm not sure if Tampermonkey has implemented the prerequisite API.

Maybe changing the active filter?
What do the other users think?

Offline Nymphadora

  • Tonks, if she were shy. The knitting Nymph. Nymphadorable. Nymphy ♥
  • Dame
  • Enchanter
  • *
  • Join Date: Aug 2013
  • Location: A Canadian in Brooklyn
  • Gender: Female
  • You can't take the sky from me.
  • View My Rolls
  • Referrals: 3
Re: TamperMonkey Script
« Reply #959 on: September 17, 2023, 09:57:50 am »
I definitely like the idea of tags. Great suggestion Al!

Personally (after looking at the images you gave as examples, I don't think they would need a column (unless the script required it or that made it easier)

Being able to click on one of the tags that changes the list of bookmarks sounds like a lot of work but would be very cool. I have no idea if that's even possible... I guess that would be what you mean by "Changing the active filter"

But any sort of useful tags would be very cool!

Online SsiethTopic starter

Re: TamperMonkey Script
« Reply #960 on: September 17, 2023, 04:50:30 pm »
OK - will add the listing of tags and having them go to the relevant BM list for the next feature release version (as opposed to oh-hell-there-was-a-bug version) :)