TamperMonkey Script

Started by Ssieth, June 09, 2015, 05:27:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ssieth

And I presume that the sorting isn't working?
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Chasing Dreams

Quote from: Ssieth on March 06, 2021, 10:32:33 AM
And I presume that the sorting isn't working?
I refreshed the page and the snippets are now staying where I put them. When I move them now nothing popped up in the console.
Selectively Available for NEW stories.
Status ⋮ Around here somewhere.
Posts owed ⋮ 7 out of 8 
Posting Order (Click to see.)

Thank you Amaris for the beautiful signature!


Ssieth

OK - I'll chalk that one up as a success.... not sure how it fixed it but it seems like it has :)
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Chasing Dreams

In the 'Sorting Snippets' they are staying where I put them, but in the actual snippets, they are not in the new order that I put them. I'll just deal with it since it seems like my computer isn't going to cooperate.
Selectively Available for NEW stories.
Status ⋮ Around here somewhere.
Posts owed ⋮ 7 out of 8 
Posting Order (Click to see.)

Thank you Amaris for the beautiful signature!


Ssieth

Quote from: Chasing Dreams on March 06, 2021, 10:42:18 AM
In the 'Sorting Snippets' they are staying where I put them, but in the actual snippets, they are not in the new order that I put them. I'll just deal with it since it seems like my computer isn't going to cooperate.

I've just  pushed v1.45.3 which may fix your problem.  It seemed like there might be issues for some snippets if the name of the snippet contained a character such as an apostrophe, quote mark or ampersand.
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Chasing Dreams

Quote from: Ssieth on March 06, 2021, 11:03:33 AM
I've just  pushed v1.45.3 which may fix your problem.  It seemed like there might be issues for some snippets if the name of the snippet contained a character such as an apostrophe, quote mark or ampersand.
Thank you for trying to help. It's still not working for me, but I can deal with it.
Selectively Available for NEW stories.
Status ⋮ Around here somewhere.
Posts owed ⋮ 7 out of 8 
Posting Order (Click to see.)

Thank you Amaris for the beautiful signature!


Ssieth

Quote from: Chasing Dreams on March 06, 2021, 11:10:16 AM
Thank you for trying to help. It's still not working for me, but I can deal with it.

OK - if inspiration strikes me regarding what it might be, I'll let you know.
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Syene

#807
Did you fix the wordcounter that works in real-time while writing a post or did I accidentally fix it while fiddling with my other extensions? Glad to have it back either way!   :-)

Edit -- though it would be awesome if it worked on PMs if that's easy to implement!
[tr][td]
[/td][td][/td][/tr][tr][td][/td][td][/td][/tr]
[/table]
[tr][td]
[/td][/tr][tr][td][/td][/tr][/table]

Nymphadora

Quote from: Syene on March 06, 2021, 09:08:42 PM
Did you fix the wordcounter that works in real-time while writing a post or did I accidentally fix it while fiddling with my other extensions? Glad to have it back either way!   :-)

Edit -- though it would be awesome if it worked on PMs if that's easy to implement!

Huh, I never had an issue with the wordcounter not working...

But yes, if it's easy to do for PMs that would be awesome!
A&As UPDATED Jan 3, 2025

Rate:Nope
Status: Crafting offline
Availability:
Unavailable for new plottings, sorry.
O&Os Please review
♪As flawed as you may think you are, you're perfect to me!♪

Ssieth

Quote from: Syene on March 06, 2021, 09:08:42 PM
Did you fix the wordcounter that works in real-time while writing a post or did I accidentally fix it while fiddling with my other extensions? Glad to have it back either way!   :-)

Edit -- though it would be awesome if it worked on PMs if that's easy to implement!

I've not knowingly fixed it but one of the updates I've done might have sorted it.
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Al Terego

Quote from: Ssieth on March 01, 2021, 07:01:10 AM
V1.44.0

Added a first stab at the snippets replacement stuff.  It works as follows.....

In your snippets dropdown in the editor you should now see a number next to each snippet.  If you put that number in the editor in a format of [3] you can, at any point, press CTRL+S to have the system try and substitute the relevant snippet.

This is not exactly what I meant, allow me to rephrase.

Let's say I want a to simulate an inline [code] tag to post BBCode examples (like I just did).

Currently, my snippet would look something like this:

[color=navy][tt][nobbc]
[/nobbc][/tt][/color]


After inserting it where I want the BBCode to appear, I would type the BBCode example after the 1st line of the snippet and delete the line-break.

However, if I could have placeholders inside the snippets, that refer to the currently selected text, for example (using {{selection}} as the placeholder):

[color=navy][tt][nobbc]{{selection}}[/nobbc][/tt][/color]

I could just select some text in the editor, apply the snippet, and it would surround the selected text with the snippet code (or just insert the snippet if there is no selection).

Is this feasible?
                    

Al Terego

Editing a snippet does not replace the original but adds a new one instead.
Is this by design?
If so, wouldn't it be better named "clone"?
                    

Al Terego

How do I add/remove a tag to an existing bookmark?
                    

Ssieth

Quote from: Al Terego on March 07, 2021, 09:44:52 AM
This is not exactly what I meant, allow me to rephrase.

Let's say I want a to simulate an inline [code] tag to post BBCode examples (like I just did).

Currently, my snippet would look something like this:

[color=navy][tt][nobbc]
[/nobbc][/tt][/color]


After inserting it where I want the BBCode to appear, I would type the BBCode example after the 1st line of the snippet and delete the line-break.

However, if I could have placeholders inside the snippets, that refer to the currently selected text, for example (using {{selection}} as the placeholder):

[color=navy][tt][nobbc]{{selection}}[/nobbc][/tt][/color]

I could just select some text in the editor, apply the snippet, and it would surround the selected text with the snippet code (or just insert the snippet if there is no selection).

Is this feasible?

That should be doable, yes.  I'll add it to the to-do :)
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Ssieth

Quote from: Al Terego on March 07, 2021, 09:49:46 AM
Editing a snippet does not replace the original but adds a new one instead.
Is this by design?
If so, wouldn't it be better named "clone"?

It seems to be a bug but I don't have the same issue.  What is the name of the snippet that is behaving like this for you?
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Al Terego

Any snippet if I change its name (sorry, I forgot to add that information)
                    

Ssieth

Quote from: Al Terego on March 07, 2021, 04:09:52 PM
Any snippet if I change its name (sorry, I forgot to add that information)

Ah - that would explain -it.  It's not really intentional, no.  The way the code works, the ID for the snippets is a fairly simple hash of the name so changing the name, changes the ID and it doesn't overwrite the old snippet but rather creates a new one.

I'll chalk it up to look into and decide what to do with it :)
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Al Terego

Not a biggie.

Meanwhile:

Quote from: Al Terego on March 07, 2021, 09:56:24 AM
How do I add/remove a tag to an existing bookmark?
                    

Ssieth

Quote from: Al Terego on March 07, 2021, 04:45:04 PM
Not a biggie.

Meanwhile:

oops - missed that.

Go to your BM list and then click the little icon to the left of the BM... that should bring up a box where you can add/remove tags :)
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Al Terego

                    

Al Terego

Tags are wonky.

These are the tags the script displays:




These are the tags the script recognizes as deletable:



Notice that "Posts Owed" and "Replied" are not there?


Wait, it gets wonkier.

The "NotOwed" and "NotReplied" tags appear to be deletable, but when I try to delete them, they stay.

When I select the "Post Owed" tag, it displays all my bookmarks even though the only tags I actually used are "TODO", "Info" and "Ons-and-Requests"
                    

Ssieth

Quote from: Al Terego on March 07, 2021, 09:29:38 PM
Tags are wonky.

[snipped]

OK - there are some special tags in there and I'll try and explain...

Posts Owed: Is an automatically assigned tag, it inidicates threads you have bookmarked where you are not the most recent poster.
Replies: Is an automatically assigned tag.  It inidicates threads that you have bookmarked which would be listed as having an unread reply.

Both of these can be switched off in setttings but by default are applied automatically.  Consequently they can't be deleted, just disabled in settings.

NotOwed and NotReplied are manually applied bookmarks but always exist and are available if Posts Owed and Replies are switched on as tags.  They are a signal to never apply the corresponding tags to those threads.  They can be bulk-deleted but will remain available for seletion so long as the auto-tag that they are associated with is still enabled.




In practice - I have posts owed switched on and use it to know which one-on-one RPs I'm owing but I use the NotOwed tag on any serious group threads I'm BMing as not being the most recent poster on those doesn't indicate that I owe a post.
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

Al Terego

Thank you for the explanation, Sieth!

Maybe marking them in a special way (different for the two groups) would be better?

Say, a different colour, or a prefix/suffix (special character or even an emoji)

                    

Ssieth

Quote from: Al Terego on March 09, 2021, 01:06:51 AM
Thank you for the explanation, Sieth!

Maybe marking them in a special way (different for the two groups) would be better?

Say, a different colour, or a prefix/suffix (special character or even an emoji)

I'm still giving a bit of thought around how best to represent these in the UI.  In the meantime:

v1.46.0 GIF freezing options
I noticed that I was getting distracted whilst trying to make a post and the thing that was dragging my attention was an animated GIF.  I guess this isn't going to be a problem for very many folks but I do that cat-like thing of my eyes darting to movement when my brain is in certain places.  As a result I've added an option to the settings (under general) to automatically pause GIFs after a number of seconds (0 is allowed).  There's also a Freeze GIFs  option under the Script Settings menu which instantly freezes GIFs playing on the current page.
Posting Status: Hoping for 1-3 per week / game
My ONs and OFFs Page (8th April 2024)
One-on-one ideas (8th April 2024)
Possible Absences (2nd May 2024)

My Tampermonkey Script for Elliquiy

PM me here or find me as ssieth on discord.

MrAlanNH

Quote from: Ssieth on March 22, 2021, 05:29:55 AM
I'm still giving a bit of thought around how best to represent these in the UI.  In the meantime:

v1.46.0 GIF freezing options
I noticed that I was getting distracted whilst trying to make a post and the thing that was dragging my attention was an animated GIF.  I guess this isn't going to be a problem for very many folks but I do that cat-like thing of my eyes darting to movement when my brain is in certain places.  As a result I've added an option to the settings (under general) to automatically pause GIFs after a number of seconds (0 is allowed).  There's also a Freeze GIFs  option under the Script Settings menu which instantly freezes GIFs playing on the current page.


THank you very much for this!  I too have trouble with GIFs, especially if there are several visible on a page at once. I am running to activate one of these options right now!