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.

MightyMaiden

#1075
fyi: Quick link sorting  worked in one place, but then I got this on another

"Sorry, this section isn't available at this time." on another one.

Also not remembering the order I set things to in custom

Ssieth

Hmm.. that's weird.   Seems like it might be choking on a name of one of the categories or links.  Can you show me the developer console in your browser when you try to sort?

(generally F12 for developer console on windows, not sure on other OSs)
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.

MightyMaiden

Seems to fail when there are spaces in the titles of the quick links?

userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:209 10/11/2023, 11:58:12:startup: -none-: "Starting Elliquiy Improver v2.7.0"
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:760 Saving config
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:761 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3058 Page:
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3059 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3877 === Quick Links ===
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3879 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:488 === Show Quick Links ===
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:435 -+-+ My%20AI%20Art
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:453 Uncaught TypeError: Cannot read properties of undefined (reading 'links')
    at sortQLs (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:453:45)
    at userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3923:9
    at Object.success (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:2350:7)
    at u (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:27457)
    at Object.fireWith [as resolveWith] (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:28202)
    at k (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:77651)
    at XMLHttpRequest.<anonymous> (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:79907)
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:2083 == dS ==
index.php:1
       

Ssieth

Quote from: MightyMaiden on November 10, 2023, 10:59:59 AMSeems to fail when there are spaces in the titles of the quick links?

userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:209 10/11/2023, 11:58:12:startup: -none-: "Starting Elliquiy Improver v2.7.0"
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:760 Saving config
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:761 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3058 Page:
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3059 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3877 === Quick Links ===
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3879 Object
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:488 === Show Quick Links ===
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:435 -+-+ My%20AI%20Art
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:453 Uncaught TypeError: Cannot read properties of undefined (reading 'links')
    at sortQLs (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:453:45)
    at userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3923:9
    at Object.success (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:2350:7)
    at u (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:27457)
    at Object.fireWith [as resolveWith] (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:28202)
    at k (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:77651)
    at XMLHttpRequest.<anonymous> (userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:3:79907)
userscript.html?name=Elliquiy-Improver.user.js&id=fbee379b-d446-497a-aa18-59601b77d0ac:2083 == dS ==
index.php:1
       


Looks like that is the case - give me a few moments and I'll see what I need to do to fix 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.

Ssieth

Quote from: Ssieth on November 10, 2023, 11:08:16 AMLooks like that is the case - give me a few moments and I'll see what I need to do to fix it :)

As it happens not too much... although other weirdness might break it.  Don't be weird, people, or be weird in a way my script likes ;p

v2.7.1 should have the fix in.   It also has a slightly better display of degug information when you switch that on, so I should be able to use details from that to diagnose quick link problems in future :)

If you get that "Sorry, this section isn't available at this time." thing again - can you let me know.  That's still puzzling me...
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

                    

Mister Morgue

#1081
Quote from: Ssieth on November 03, 2023, 04:06:26 AMAre you using the Quick Reply box?  If so, snippets do not work there.  I might manage to get them working there in the future.
Sorry I took a while to reply, been a little busy... But, I'm not using quick reply, I usually open my reply in a new window and set them side by side. There just doesn't seem to be a button, or drop down, or even something in the right-click menu for snippets. Could it be a firefox issue, maybe?

Screenshot



EDIT: I'm dumb. I just went into the settings to see what was going on. I had both options for snippets checked, as soon as I unchecked one of them, the menu popped up!

Al Terego

Right-click in the edit box
                    

FyreFoxx

So I was a bit behind on getting the updates. It does not auto update, but I got the new version and am loving these Quick Links. However, I ran across an issue.

So while messing with them, I ended up creating a quick link without a title, just the URL. So it shows in the category (icon with no name), and still works, but I can't edit the name, nor delete it, despite it giving me the confirmation of yes or no. (So clicking YES does nothing to get rid of it) I also cannot delete the category because it has what I'm going to call a "ghost link" inside it. Am I missing something? Is there a way to delete or rename it that I missed? Or did I break it? xD

Théfaux
  Availability: CLOSED
 How To Stoke The Fyre (O/O)  Updated Dec 18, 2024
 What does the Foxx say? (A/A)  Updated Jan 30, 2025
 Den of Iniquity (World Building / Character Repository)

Ssieth

Quote from: FyreFoxx on December 11, 2023, 01:43:26 PMSo I was a bit behind on getting the updates. It does not auto update, but I got the new version and am loving these Quick Links. However, I ran across an issue.

So while messing with them, I ended up creating a quick link without a title, just the URL. So it shows in the category (icon with no name), and still works, but I can't edit the name, nor delete it, despite it giving me the confirmation of yes or no. (So clicking YES does nothing to get rid of it) I also cannot delete the category because it has what I'm going to call a "ghost link" inside it. Am I missing something? Is there a way to delete or rename it that I missed? Or did I break it? xD

Oops - totally missed that issue.  v2.7.2 should remove any blank quick links or quick link categories any time they are loaded :)
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.

FyreFoxx

Quote from: Ssieth on December 11, 2023, 01:59:42 PMOops - totally missed that issue.  v2.7.2 should remove any blank quick links or quick link categories any time they are loaded :)

Yaay! All fixed! You are a miracle worker! <3

Théfaux
  Availability: CLOSED
 How To Stoke The Fyre (O/O)  Updated Dec 18, 2024
 What does the Foxx say? (A/A)  Updated Jan 30, 2025
 Den of Iniquity (World Building / Character Repository)

Ssieth

Quote from: FyreFoxx on December 11, 2023, 02:00:57 PMYaay! All fixed! You are a miracle worker! <3

I breaks it and I fixes it.  Like a snake eating its own tail ;p
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.

Fiadh

Is there something fishy going on with Word Count? I'm using the regular reply function and see "Word Count: 0" below my text box as I type, but the count always ends up showing on my posted message. I'm on Chrome + Mac if either of those things could be messing something up...

Aethyrium

If you copy paste into the box, the world count won't update until you enter something manually into the box to force it to update. Even just a space will do.

If you are manually typing the post in the reply, that seems like a bug of some sort - seems working on Firefox + Windows.

Fiadh

I'm manually typing into the reply / quick reply box when the word count doesn't change, so it sounds like a bug. 

Peripherie

Just getting back to installing this wonderful Script.

But - I can't seem to get it to work. GreaseMonkey is Installed and v. 2.7.2 of Elliquiy Improver is enabled. I don't see any additional setting selections at the very top of E or on the Home menu bar.

.... I am sure this is user error. But I don't know exactly which of the infinite number of (this particular) user errors it could be.
"Hope is the thing with feathers -
that perches in the soul -
and sings the tune without the words -
and never stops - at all" ~ Emily Dickinson

Ssieth

GreaseMonkey no longer runs the script since one of their updates removed some necessary stuff.  You need to use either TamperMonkey or ViolentMonkey these days :(

For the wordcount issue - I'll spend a bit of time tomorrow to see if I can make it break in the same way as you are getting.
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.

Peripherie

#1092
Ahhh..... yeah, so it was a reading comprehension issue on my end as your signature certainly says Tampermonkey. 🤦

My humiliation was worth it for the easy fix. :) Thank you!
"Hope is the thing with feathers -
that perches in the soul -
and sings the tune without the words -
and never stops - at all" ~ Emily Dickinson

Ssieth

Quote from: Peripherie on January 14, 2024, 04:59:50 PMAhhh..... yeah, so it was a reading comprehension issue on my end as your signature certainly says Tampermonkey. 🤦�♀️

My humiliation was worth it for the easy fix. :) Thank you!

You are most welcome :)

The easy problems are the best ones (for me at least) :)
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.

Rayne

So I keep trying to sort my quick links using custom sort, but after I rearrange it there's no button to save, just a back button. I've clicked that, hoping it will save, but it reverts right back to the previous order every time. How do I get the sort to update? 

away 5-8 to 5-21

Ssieth

Quote from: Rayne on January 16, 2024, 07:29:40 PMSo I keep trying to sort my quick links using custom sort, but after I rearrange it there's no button to save, just a back button. I've clicked that, hoping it will save, but it reverts right back to the previous order every time. How do I get the sort to update?

That's odd - you shouldn't need a button as just dragging stuff around should sort them without need to click save or anything of the sort (no pun intended).

If you open up the developer console (F12 for most windows browsers, I don't know for Mac), does that show any errors?
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.

MightyMaiden

So I've never been able to custom sort, but I just kind of moved on and didn't worry.
Brave on windows
one quick link has an ampersand in it, and that breaks when I try to sort " Sorry, this section isn't available at this time."(but that doesn't surprise me)

but on the ones that load I get 404 errors as below



Fiadh

Also re: snippets, I can see the Snippet option above the text box now that I only enable one of the snippet options in the script settings (saw someone else was having the same issue!).

But when I hover over Snippets and select a template, nothing happens. My template doesn't show up in the reply box. :/
 
I have no idea why the script is hating me haha.

Rayne

Quote from: Ssieth on January 17, 2024, 03:20:04 AMThat's odd - you shouldn't need a button as just dragging stuff around should sort them without need to click save or anything of the sort (no pun intended).

If you open up the developer console (F12 for most windows browsers, I don't know for Mac), does that show any errors?
Ok yea it is giving an error when I go to sort: 

/forums/index.php?action=sortqls&cat=Active%20RPs:1
       
       
      GET https://elliquiy.com/forums/index.php?action=sortqls&cat=Active%20RPs 404 (Not Found)

away 5-8 to 5-21

Ssieth

Quote from: Andronica on January 17, 2024, 10:00:51 AMAlso re: snippets, I can see the Snippet option above the text box now that I only enable one of the snippet options in the script settings (saw someone else was having the same issue!).

But when I hover over Snippets and select a template, nothing happens. My template doesn't show up in the reply box. :/
 
I have no idea why the script is hating me haha.

Hi,

Can I check, are you using the edit box in source view mode? (button on the far right of the button bar)
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.