You are either not logged in or not registered with our community. Click here to register.
 
February 05, 2023, 10:32:17 am

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 160561 times)

0 Members and 1 Guest are viewing this topic.

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #550 on: October 31, 2019, 04:06:18 pm »
Great - I see that your display name is up the top of that in a H4 tag so I should be able to do something with that.  Leave it with me and I hope to have something for you relatively soon :)

Offline Mister Morgue

  • .☆☆ ʜᴏᴘᴇʟᴇss ʀᴏᴍᴀɴᴛɪᴄ ☆☆. .☆☆ ɢᴇɴᴛʟᴇᴍᴀɴ ᴅᴇᴍᴏɴ ☆☆. ..☆☆ ·..· ᴅᴇɢᴇɴᴇʀᴀᴛᴇ ·..· ☆☆.. .☆☆ sᴘᴏᴏᴋʏ ᴇɴᴛʜᴜsɪᴀsᴛ ☆☆.
  • Champion
  • Enchanter
  • *
  • Join Date: Aug 2017
  • Location: The Graveyard
  • Gender: Male
  • ʏᴏᴜ'ᴠᴇ ʜᴀᴜɴᴛᴇᴅ ᴍᴇ ɪɴ ᴄᴏʟᴏᴜʀs ɪ'ᴠᴇ ɴᴇᴠᴇʀ sᴇᴇɴ
  • View My Rolls
  • Referrals: 4
Re: TamperMonkey Script
« Reply #551 on: October 31, 2019, 04:09:46 pm »
Great - I see that your display name is up the top of that in a H4 tag so I should be able to do something with that.  Leave it with me and I hope to have something for you relatively soon :)

Thanks! I really do appreciate you looking into it!

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #552 on: October 31, 2019, 04:27:26 pm »
OK - I've got something coded - just testing it now and if it works I'll release an update :)

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #553 on: October 31, 2019, 04:38:37 pm »
OK - there's a new version up: v1.39.0

This version should work properly for people who've changed their displayed name :)

Offline BlueOrange

  • Liege
  • Seducer
  • *
  • Join Date: Oct 2019
  • Location: Australia
  • Shapeshifting is how it starts
  • View My Rolls
  • Referrals: 0
Re: TamperMonkey Script
« Reply #554 on: October 31, 2019, 04:43:59 pm »
Nice turnaround!

I was starting to think that I would use this as a JavaScript learning exercise.  So I guess the questions are:

- do you mind other people playing with your code?
- are there any outstanding feature requests or bugs?

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #555 on: October 31, 2019, 04:49:19 pm »
Nice turnaround!

I was starting to think that I would use this as a JavaScript learning exercise.  So I guess the questions are:

- do you mind other people playing with your code?

Not at all - I positively encourage it :)

- are there any outstanding feature requests or bugs?

Hmmm... #1 on the list is that the drafts feature is a bit on the fritz (it's never worked perfectly), especially auto-loading of drafts.

The whole script could do with a bit of a tidy-up, though and there are some features that could probably do with being dropped - like Quick Topics.  They were something I came up with before I really understood that bookmarks do the same thing.

Offline BlueOrange

  • Liege
  • Seducer
  • *
  • Join Date: Oct 2019
  • Location: Australia
  • Shapeshifting is how it starts
  • View My Rolls
  • Referrals: 0
Re: TamperMonkey Script
« Reply #556 on: October 31, 2019, 04:59:53 pm »
Cool!

Now I just have to find out if I meant it ;)

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #557 on: October 31, 2019, 05:05:31 pm »
Cool!

Now I just have to find out if I meant it ;)

I have to say - I've no idea if OpenUserJS has any tools/setings to foster team development.  I don't mind uploading stuff that other folks have edited in but it would be nice if I don't become a bottleneck if other folks are working on the script :)  I'll take a proper look into it when I get chance :)  In the meantime, if you make any changes I can upload for you :)

And if there's anything in there that's obscure enough you can't fathom it (some of the code is messy enough for sure) then just tap me up in PM and I'll try and work out what I did :)

Offline BlueOrange

  • Liege
  • Seducer
  • *
  • Join Date: Oct 2019
  • Location: Australia
  • Shapeshifting is how it starts
  • View My Rolls
  • Referrals: 0
Re: TamperMonkey Script
« Reply #558 on: October 31, 2019, 07:21:21 pm »
My default answer to that sort of question these days is GitHub. The only thing you don’t get with a free account is privacy, and that doesn’t sound like something you need.

Offline Mister Morgue

  • .☆☆ ʜᴏᴘᴇʟᴇss ʀᴏᴍᴀɴᴛɪᴄ ☆☆. .☆☆ ɢᴇɴᴛʟᴇᴍᴀɴ ᴅᴇᴍᴏɴ ☆☆. ..☆☆ ·..· ᴅᴇɢᴇɴᴇʀᴀᴛᴇ ·..· ☆☆.. .☆☆ sᴘᴏᴏᴋʏ ᴇɴᴛʜᴜsɪᴀsᴛ ☆☆.
  • Champion
  • Enchanter
  • *
  • Join Date: Aug 2017
  • Location: The Graveyard
  • Gender: Male
  • ʏᴏᴜ'ᴠᴇ ʜᴀᴜɴᴛᴇᴅ ᴍᴇ ɪɴ ᴄᴏʟᴏᴜʀs ɪ'ᴠᴇ ɴᴇᴠᴇʀ sᴇᴇɴ
  • View My Rolls
  • Referrals: 4
Re: TamperMonkey Script
« Reply #559 on: October 31, 2019, 10:40:25 pm »
Yay! It's working! Thanks so much, Ssieth. I wasn't expecting such a quick fix, but I'm really thankful! I really enjoy the script a lot.

That being said, I use Quick Topics for something entirely separate than my BM. I'm not sure how many others do that. But I use my Quick Topics to link to specific posts in threads, like my tracker for ElliWriMo, since you can edit the quick topic to link to a specific post.

This means I can set it to link to my current tracker, or my current Posts Owed update in my AA's or any other number of things where I might not want to link just to the whole thread but a specific part.



Again, I'm not sure if anyone else does this, or if they even know that they can do this. But, I think it's a nice thing. :D

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #560 on: November 01, 2019, 05:35:43 am »
Yay! It's working! Thanks so much, Ssieth. I wasn't expecting such a quick fix, but I'm really thankful! I really enjoy the script a lot.

That being said, I use Quick Topics for something entirely separate than my BM. I'm not sure how many others do that. But I use my Quick Topics to link to specific posts in threads, like my tracker for ElliWriMo, since you can edit the quick topic to link to a specific post.

This means I can set it to link to my current tracker, or my current Posts Owed update in my AA's or any other number of things where I might not want to link just to the whole thread but a specific part.



Again, I'm not sure if anyone else does this, or if they even know that they can do this. But, I think it's a nice thing. :D

Ah - fair enough - I will make sure to take a poll of who uses what features before I seriously consider removing anything.  The last thing I want to do is get rid of anything that's actually useful to anyone :)

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #561 on: November 01, 2019, 05:51:59 am »
My default answer to that sort of question these days is GitHub. The only thing you don’t get with a free account is privacy, and that doesn’t sound like something you need.

Yeah - I've been thinking about moving there for a good while now and finally got around to it :)  URL is: https://github.com/Ssieth/eli-userscript for the base of the project and if you would like collaborator access (or if anyone else would for that matter) then just let me know your username and I'll set you up :)

This will have wider implications for other folks as well as the URL for the script will change as new versions are rolled out.  Currently the github version is set to 1.40.0 which is just a we've-moved-to-github version.  Future new releases will be here though.... 

Soooo... if folks using the script can visit this url: https://github.com/Ssieth/eli-userscript/raw/master/eli.user.js, that will update you to the github version and ensure that you get updates in future.

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #562 on: November 01, 2019, 10:54:07 am »
A brief flying visit to let you all know that I've put v1.40.1 up at https://github.com/Ssieth/eli-userscript/raw/master/eli.user.js

There's no changes in there that anyone should notice - just a few bug fixes to make the code more closely conform to the JavaScript standards.  This might have very minor positive impacts on those folks using Chrome (which is more exacting in what it expects than FireFox) but I would imagine probably not.

Offline Jaclyn

  • they/them/their
  • Centurion
  • Enchanter
  • *
  • Join Date: Jun 2018
  • Location: Space Coast, FL
  • Shall we write together for mutual enjoyment?
  • View My Rolls
  • Referrals: 13
Re: TamperMonkey Script
« Reply #563 on: November 03, 2019, 02:03:17 pm »
Reporting that all updated/reinstalled as hoped and seems to be working smoothly. Well done some more, Ssieth!

Offline FoxWriter

Re: TamperMonkey Script
« Reply #564 on: November 03, 2019, 02:41:16 pm »
same here! in fact it was so easy i was convinced i did it wrong and did it three more times because i was convinced it wasn't working. XDDD so effortless.

Online Nowherewoman

  • They buffet against opposing waves, to gain the bloody shore, not to recede from it.
  • Dame
  • Carnite
  • *
  • Join Date: Aug 2014
  • Location: Having a conversation with a brain on fire.
  • Gender: Female
  • Go elf yourself.
  • View My Rolls
  • Referrals: 4
Re: TamperMonkey Script
« Reply #565 on: November 03, 2019, 08:24:34 pm »
LOL I forgot to refresh the page, so I thought it hadn't installed properly. Was still showing as 1.39.

<<why iz not hacker

Offline ZephyrInk

  • Hopeless Sappy Romantic ~..~ Bibliophile ~..~ Enthusiast ~..~ Dragon Whisperer ~..~ #ExtremePls ~..~ You ask for a match & I'll give you wildfire. I don't know how to love small.
  • Oracle
  • Addict
  • *
  • Join Date: Apr 2017
  • Location: In your dreams! Hopefully ~
  • Gender: Female
  • I am a drop of Ink of your desired colour
  • View My Rolls
  • Referrals: 1
Re: TamperMonkey Script
« Reply #566 on: November 03, 2019, 08:56:51 pm »
LOL I forgot to refresh the page, so I thought it hadn't installed properly. Was still showing as 1.39.

<<why iz not hacker

Same here >.> ^ also..it works great on Chrome. Thank you! ^_^

Offline SsiethTopic starter

Re: TamperMonkey Script
« Reply #567 on: November 04, 2019, 03:41:53 am »
Thanks for the feedback, everyone :)  That helps me draw a line under v1.40.x and know that it's not caused too much in the way of heartache :)

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 #568 on: November 04, 2019, 08:12:43 am »
I'll pile on the agreement. It works great and was so easy to update.
Thanks for your work, Ssieth!

Offline Jaclyn

  • they/them/their
  • Centurion
  • Enchanter
  • *
  • Join Date: Jun 2018
  • Location: Space Coast, FL
  • Shall we write together for mutual enjoyment?
  • View My Rolls
  • Referrals: 13
Re: TamperMonkey Script
« Reply #569 on: November 06, 2019, 07:27:44 pm »
I’m running it in Brave (https://brave.com/), a browser derived from Chrome. Most Chrome extensions work. Privacy, baby!

Offline atenai

  • Chaotic Crazy Cat Lady
  • Lady
  • Seducer
  • *
  • Join Date: Aug 2013
  • Location: Boston, MA, USA
  • Gender: Female
  • Dreamers never die.
  • View My Rolls
  • Referrals: 3
Re: TamperMonkey Script
« Reply #570 on: December 21, 2019, 10:48:25 am »
I wanted to add my belated thanks as well! I only saw this recently (few weeks?) and I'm only getting around to playing with settings now. Many thanks for all the good things you included, and thanks to others for mentioning how you use certain features (lookin' at you in particular, Mister Morgue), because now I think I'll be testing that out, too.

I did want to ask of either Ssieth or anyone with enough JS know-how to give me the fix... is there a way to make it so the "Replies" drop down directs to the first new post, instead of the latest post? With OOC threads or socializing threads, they can be pretty active and I miss an awful lot when it jumps to the last post instead of the newest one. I'm going to keep poking at this, maybe I'll figure it out myself, but if anyone has any suggestions, I'd appreciate it!

EDIT: Quick Topics also seem to be applying the #lastpost hashtag, which doesn't let me link to specific posts.
« Last Edit: December 21, 2019, 10:50:26 am by atenai »

Online Amaris

  • [Amabean][Extramaris][Saturday][WooderWoman][Stinky Pete]["The Mayo"][BBF][Moon Moon]
  • Centurion
  • Addict
  • *
  • Join Date: Aug 2017
  • The moon and I are too much in love.
  • View My Rolls
  • Referrals: 7
Re: TamperMonkey Script
« Reply #571 on: December 21, 2019, 11:21:25 am »
You can stop the quick topics from going to the last post, but I think the other option is that it goes to the very first post every time. So, it's not the newest unread post. In order to do that you need to go to the script settings. Instead of hovering over it for the drop down, actually click the word 'script settings' and go down to quick topics and uncheck the box that says "go to last post".

Offline Jaclyn

  • they/them/their
  • Centurion
  • Enchanter
  • *
  • Join Date: Jun 2018
  • Location: Space Coast, FL
  • Shall we write together for mutual enjoyment?
  • View My Rolls
  • Referrals: 13
Re: TamperMonkey Script
« Reply #572 on: December 21, 2019, 11:59:47 am »
… is there a way to make it so the “Replies” drop down directs to the first new post, instead of the latest post? With OOC threads or socializing threads, they can be pretty active and I miss an awful lot when it jumps to the last post instead of the newest one. I’m going to keep poking at this, maybe I’ll figure it out myself, but if anyone has any suggestions, I’d appreciate it!

EDIT: Quick Topics also seem to be applying the #lastpost hashtag, which doesn’t let me link to specific posts.
That seems a question for Vekseid. We have the #lastpost way to go to the end of a topic. But no “go to the post after the last one I’ve read.” Apps like Mattermost and Slack and Discord are support such a thing. I’m not sure that’s even possible in apps like SMF and ElkArte that live on top of what browsers interpret.

Offline atenai

  • Chaotic Crazy Cat Lady
  • Lady
  • Seducer
  • *
  • Join Date: Aug 2013
  • Location: Boston, MA, USA
  • Gender: Female
  • Dreamers never die.
  • View My Rolls
  • Referrals: 3
Re: TamperMonkey Script
« Reply #573 on: December 22, 2019, 02:16:48 pm »
Well, I know it's possible to do in a URL, instead of topicnum.msgnum#msgnum, it's topicnum.new#new. Now that Ama pointed me to where I can turn off the Quick Replies go-to-last-post feature, I can just make sure the URLs marked in Quick Topics have that format (.new#new).

Thank you both!

I just need to stop clicking on replies in the drop-down, I need to click to go to the full list, and then there's the 'new' icon which will take me to the new replies instead.

Offline Daena

  • The stories are woven, And fortunes are told. The truth is measured by the weight of your gold.
  • Lady
  • Seducer
  • *
  • Join Date: Feb 2019
  • Location: Where the magic lies scattered, On rugs on the ground..
  • Gender: Female
  • Faith is conjured in the night market's sound.
  • View My Rolls
  • Referrals: 4
Re: TamperMonkey Script
« Reply #574 on: March 14, 2020, 10:29:51 pm »
Is this still working? I've attempted to download from the last links from Ssieth, and I'm getting errors.

Perhaps I'm doing something wrong or is it no longer working?