Embedded Content Script (Now With X, Reddit, Steam, ++)
Page 1 of 3 Goto page 1, 2, 3  Next
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 06:41    Post subject: Embedded Content Script (Now With X, Reddit, Steam, ++)
I took Pumpy's idea and extended it to support most common sites, such as gfycat, giphy, imgur and vimeo.

https://raw.githubusercontent.com/LeoNatan/NFOHump/master/EmbedVideos/NFOHumpEmbedVideos.user.js

It does a best effort to display the links in video format, but will fallback to gifs in some cases.

If you find broken cases, let me know.

Here are some examples:

https://66.media.tumblr.com/a5737233bea0469d4589a970dd575cad/94d366e58ad1e7a0-11/s250x400/7ceb287c5434435bec4b540cb4a933f9a6aeb698.gifv
https://thumbs.gfycat.com/LimpingUnacceptableAustralianshelduck-mobile.mp4
https://gfycat.com/mildhilariousinganue
https://vimeo.com/390882605
https://gfycat.com/incomparablefortunatefawn-dog


My IMDb Ratings | Fix NFOHump Cookies | Hide Users / Threads | Embedded Content (Videos/GIFs/Twitter/Reddit) | The Derps Collection

Death smiles at us all; all we can do is smile back.


Last edited by LeoNatan on Mon, 18th Dec 2023 15:33; edited 5 times in total
Back to top
Frant
King's Bounty



Posts: 24472
Location: Your Mom
PostPosted: Fri, 21st Feb 2020 09:38    Post subject:
How do I install it? Tampermonkey?


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"Thank you to God for making me an Atheist" - Ricky Gervais
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 10:08    Post subject:
Yes, like all my other scripts. It's the best way to support all browsers, and pretty convenient (automatically updates, etc.). If you have TM installed, just click on the link above.
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Fri, 21st Feb 2020 13:19    Post subject:
How about posting some test vids here? Razz


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
TheZor
VIP Member



Posts: 5991

PostPosted: Fri, 21st Feb 2020 14:33    Post subject:
Works like a charm for me, thanks a lot Leo !

You can see an example here : https://www.nfohump.com/forum/viewtopic.php?p=3268375 Smile

Edit: It seems like it breaks the ability to click forum emoticons in order to add them to your post. That only happens in Quick Reply mode though, not in the full "Post Reply" mode though. Weird !
Back to top
Morphineus
VIP Member



Posts: 24883
Location: Sweden
PostPosted: Fri, 21st Feb 2020 16:43    Post subject:
Has some issues:

- Not being able to use emoticons in the quick reply.
- Not being able to Quick Quote
- Getting critical database errors, twice because I wanted to edit and one time for going back to a previous page (though I suspect that was towards an edit).


Back to top
tonizito




Posts: 51169
Location: Portugal, the shithole of Europe.
PostPosted: Fri, 21st Feb 2020 16:49    Post subject:
Morphineus wrote:
- Getting critical database errors, twice because I wanted to edit and one time for going back to a previous page (though I suspect that was towards an edit).
I'm not using this (typing from my phone until I get home) but I got a couple of those today, so it might be something unrelated to the plugin


boundle (thoughts on cracking AITD) wrote:
i guess thouth if without a legit key the installation was rolling back we are all fucking then
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Fri, 21st Feb 2020 17:46    Post subject:
Critical Database error because of a plugin Mr. Green

I don't think leo's script can cause this... well at least not in THIS form Laughing


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
Nui
VIP Member



Posts: 5720
Location: in a place with fluffy towels
PostPosted: Fri, 21st Feb 2020 17:49    Post subject:
we are just 42 tampermonkey scripts away from proper forum software functionality!


kogel mogel
Back to top
TheZor
VIP Member



Posts: 5991

PostPosted: Fri, 21st Feb 2020 19:06    Post subject:
Nui wrote:
we are just 42 tampermonkey scripts away from proper forum software functionality!


Very Happy Very Happy Very Happy
You can do it Leo !
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 19:31    Post subject:
I will take a look, thanks for feedback guys! Smile
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 19:37    Post subject:
I think the stuff broke because I required some jquery version, rather than using the built-in one.

Fixed in 1.0.1.
Back to top
Morphineus
VIP Member



Posts: 24883
Location: Sweden
PostPosted: Fri, 21st Feb 2020 19:38    Post subject:
PumpAction wrote:
Critical Database error because of a plugin Mr. Green

I don't think leo's script can cause this... well at least not in THIS form Laughing


Yeah, I was thinking in the line of it maybe causing more load on ze old software. I first checked if anyone else was mentioning the errors but not at that time.

Best to report anything is my mantra.


Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 19:38    Post subject:
TheZor wrote:
Very Happy Very Happy Very Happy
You can do it Leo !

Any more ideas for scripts?

Morphineus wrote:
Best to report anything is my mantra.



PumpAction wrote:
How about posting some test vids here? Razz

Done. Check first post.
Back to top
Nui
VIP Member



Posts: 5720
Location: in a place with fluffy towels
PostPosted: Fri, 21st Feb 2020 19:59    Post subject:
And when applicable they come with the control bar Surprised thanks Smile

Does this ruin anyone browser performance in a thread full of them?


kogel mogel
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Fri, 21st Feb 2020 20:04    Post subject:
On Firefox, I can't say I have felt slowdowns in the Gifs thread, which is full of embeddables. The only annoying thing is the jumping a little, because the HTML DOM is being changed, but that's the nature of scripts.
Back to top
ixigia
[Moderator] Consigliere



Posts: 64969
Location: Italy
PostPosted: Fri, 21st Feb 2020 23:37    Post subject:
This is really handy, thanks Very Happy
Quite surprisingly, even my Precambrian connection doesn't seem to suffer too much from it. I just tested the gif thread and aside from the initial buffering party everything loaded up without any particular problems or slowdowns. And that's on Chrome as well Cool Face Laughing
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Sat, 22nd Feb 2020 00:03    Post subject:
@ixigia Don't make me make an intervention thread in the VIP section about Firefox!!! Laughing Laughing
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Sat, 22nd Feb 2020 01:59    Post subject:
Pushed a new version of the script with toggle in the side menu. If you disable, it will turn videos into links again and vice versa. I also updated the hidden users script to rerun embedding if hidden users are toggled so that the previously hidden posts are also searched for embedding.
Back to top
Przepraszam
VIP Member



Posts: 14426
Location: Poland. New York.
PostPosted: Mon, 24th Feb 2020 00:47    Post subject:
This doesn't work at all on my Firefox? What gives?


Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Mon, 24th Feb 2020 01:05    Post subject:
So you installed it in Tampermonkey and itโ€™s now working? Do you mind posting a screenshot of your developer console after loading a page?
Back to top
Przepraszam
VIP Member



Posts: 14426
Location: Poland. New York.
PostPosted: Mon, 24th Feb 2020 10:32    Post subject:
I have been using Greasemonkey. Switched to Tampermonkey and all is working now.


Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Tue, 3rd Mar 2020 11:12    Post subject:
Hey Leo,

can you disable auto gif loading for signatures?

https://www.nfohump.com/forum/viewtopic.php?p=3272336#3272336

Here prudislav's signature link is auto loaded Smile


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Tue, 3rd Mar 2020 11:23    Post subject:
Yes! I did it for the hidden users, I will add it here.
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Tue, 3rd Mar 2020 11:49    Post subject:
Thenks men


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Tue, 3rd Mar 2020 11:55    Post subject:
Wait, what, the link in prudislav shouldn't autoload, because it's a png and not a gif. You sure you are using the latest version (1.1)?

Either way, I am working on adding the exception to sigs.
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Tue, 3rd Mar 2020 12:11    Post subject:
1.2 out with sig filtering. Very Happy
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Tue, 3rd Mar 2020 14:09    Post subject:


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
madmax17




Posts: 18180
Location: Croatia
PostPosted: Mon, 9th Mar 2020 23:25    Post subject:
Pretty cool Very Happy
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel ๐Ÿ‡ฎ๐Ÿ‡ฑ
PostPosted: Mon, 9th Mar 2020 23:57    Post subject:
@max Thanks!

@nalo Can't get Twitter to work for now. There is a xss block on Twitter APIs, while using Tampermonkey's own request API enters the system into a sandbox mode, which breaks the script. Still looking into it.
Back to top
Page 1 of 3 All times are GMT + 1 Hour
NFOHump.com Forum Index - General chatter Goto page 1, 2, 3  Next
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 ยฉ 2001, 2002 phpBB Group