Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Body btw

Body btw

Posts: 19,488 Opal Posts by user Forum Profile RuneMetrics Profile
Heya Indy ^_^ it's great to see this thread active. I wanted to toss a potential feature idea out there.

When I'm making a post like this that includes a push or imgur link, a preview of that image doesn't come up until I hit "Post". Would it be possible to get a preview of that image as soon as I paste the link in this post prior to hitting "post"?

I guess one reason I ask is, I've posted the wrong image before :p Another is that it's just nice to see a a preview (like a small thumbnail) of what I'm posting because I might want to add some of my own words with the picture and seeing the picture might remind me of what I want to say!

It's no big deal, just an idea :) I realize there is a preview option, but it doesn't help me much since I'm 100% more likely to hit "Post" and then edit if needed. I see some people might find it annoying to have a big image there while typing, that's why I'm thinking a small thumbnail preview instead of the actual size.
"Why are you posting threads, asking questions and making discussion???"


All I do anymore is fish - 2017

13-Sep-2017 05:37:11 - Last edited on 13-Sep-2017 05:43:24 by Body btw

AoDude

AoDude

Posts: 1,694 Mithril Posts by user Forum Profile RuneMetrics Profile
Hey, saw a tweet from firefox on my feed about their new extensions, and being able to use existing google chrome extensions with no code changes, in some cases. I wonder how cleanly linkify ports. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension
AO
Deputy-Owner :
The Nexus CC

14-Sep-2017 02:36:24

Lil Indecent

Lil Indecent

Posts: 447 Silver Posts by user Forum Profile RuneMetrics Profile
Body btw said :
Heya Indy ^_^ it's great to see this thread active. I wanted to toss a potential feature idea out there

Hiya Bodyy :)

Nice suggestion however there is one major limitation I can't get around. The textarea is one of the few HTML elements that cannot contain other elements. Meaning the only thing that can go in there is plain text.

This is so strict that the textarea element is even used to sanitise code since all HTML and javascript is treated as plain text and won't be rendered/executed by the browser.

If I were to try to embed an image it would appear as code something like this....

<img src="h ttps://i.imgur.com/3C0ACsV.png" />

There is a good reason why HTML can't be embedded in the text area. Without this limitation, if you typed code in the reply box it would run. That means if someone quoted your code you could potentially phish them without them ever leaving the forums.

Good suggestion but I can't think of a practical way to implement it.

14-Sep-2017 04:53:28

Lil Indecent

Lil Indecent

Posts: 447 Silver Posts by user Forum Profile RuneMetrics Profile
AoDude said :
Hey, saw a tweet from firefox on my feed about their new extensions, and being able to use existing google chrome extensions with no code changes, in some cases. I wonder how cleanly linkify ports. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension

Hiya AoDude, great to see you. I hope all is well for you :)

Wow that sounds really good. I haven't read it all as yet but I will check it out closely later today. Last time I looked, FF was a real pain for developing extensions. Any improvement to the development process will be welcomed by me.

Big thank you for letting me know, it's very much appreciated :)

Edit:

Just ran the FF compatibility test for RS Linkify...
https://i.imgur.com/rFikCHw.png

Looks encouraging, there were a few warnings but no errors. Hopefully it's just stuff like relative urls working differently (relative to extension verses relative to webpage). There were a few warnings about jquery lib but I'm not about to tamper with jquery to make FF happy. I saw some other minor warnings and I don't expect they will be any issue or hard to resolve.

I haven't run it within FF browser yet. That will be the big test and I'll do that later tonight when I can focus without any distractions.

So, fingers crossed for RS Linkify on FF :)

14-Sep-2017 04:56:45 - Last edited on 14-Sep-2017 05:27:25 by Lil Indecent

Body btw

Body btw

Posts: 19,488 Opal Posts by user Forum Profile RuneMetrics Profile
WOW that's cool :) I'm a chrome user but I love seeing Linkify on other platforms for other people

Also, thanks for the response to my suggestion. The limitation makes sense, thanks for explaining. :)
"Why are you posting threads, asking questions and making discussion???"


All I do anymore is fish - 2017

14-Sep-2017 19:29:05 - Last edited on 14-Sep-2017 19:29:26 by Body btw

AoDude

AoDude

Posts: 1,694 Mithril Posts by user Forum Profile RuneMetrics Profile
Likewise Bodyy, but it's neat that the compatibility test came back positive.

And you are totally right for not altering jquery Indy. Much headache for little payoff! Anyway, hopefully everyone is having a good DXP, and staying very hydrated: https://media.tenor.com/images/e5de894ea56814f46fb3bd37bba03aff/tenor.gif
AO
Deputy-Owner :
The Nexus CC

15-Sep-2017 20:10:04

Lil Indecent

Lil Indecent

Posts: 447 Silver Posts by user Forum Profile RuneMetrics Profile
Now that's my kind of hydration!

I tried running RS Linkify on FF. Some things worked and some things didn't. I haven't looked into the reason why though.

This is what I noticed not working.

• Some context menu options didn't work though some did.

• Lightbox doesn't work though image embedding and hyperlinking does.

• No options/settings page at all, so nothing can be configured.

• No VoS.

• No restore last past.

• Scroll to top/bottom buttons don't work.

• Text to image doesn't work ­no support

There are loads of other things that I haven't checked and since the RS Linkify defaults have a large number of features turned off (time conversions, black list, etc) there are lots of things I can't check.

I have a feeling message passing between the context scripts and the background page might be a problem and RS Linkify relies heavily on that for some things. Though I'm hoping that might be resolved by sorting out the differences with relative URLs since those messages often fire a script in the root path of the extension.

Basic embedding and hyperlinking works, though I haven't checked out all content that can be embedded. Text selection quoting also worked and hiscores context menu worked (that reminds me I found a bug with that and custom avatars). The pages also looked normal as in no elements were out of alignment.

I'm reluctant to dive in and start making changes as I expect Firefox's extension support to mature, particularly in these early stages. I'm not going to go all out and try to get it working, but I will play around a little and see what I can do.

If I can have the same code (with some minor exceptions) work on both platforms then I'll be very happy. Even it means dropping some minor features I'd seriously consider doing it. But maintaining two different lots of code is something I'm not keen to do.

I'll look into some more over the next few weeks and see what I can do :)

18-Sep-2017 00:32:22

Quick find code: 261-262-33-65181208 Back to Top