Tech Note: LGF Pages Now Allows Video Embedding from Any Site

Technology • Views: 11,201

LGF Pages continues to evolve: the new feature of the day is the ability to embed videos in your Pages from any video website (instead of being limited to YouTube, Vimeo, Liveleak, and Google).

To make this work, there’s a new button in the LGF Pages bookmarklet that looks something like this:

(That’s supposed to look like a miniature video player.)

Most video sites have a feature that lets you copy the embed code for a video to your clipboard, for pasting into a blog or other site. Here’s an example of this code, copied from YouTube (with spaces inserted to prevent messing up the formatting):

youtube.com; youtube.com;” type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”480” height=”385”>

When you click the “Embed Video” button in the LGF Pages bookmarklet, you’ll be prompted to paste in the “Video embed code” from the video site. That’s all you need to do.

The embed code will be converted (through the magic of regular expressions) into the special type of video link we use in the LGF Blog (to be compatible with the widest possible range of browsers), and inserted into your “Text” field at the point where you left the insertion cursor when you clicked the button. The inserted code will look something like this (this is the code for the Dana Carvey video I posted yesterday):

That’s all you need to know. Just click the button, paste in the video embed code, and your video will automagically appear in your Page when it’s posted (or when you Preview).

I’ve tested this feature with many different video sites, and so far they all work (as long as they use and tags and not Javascript or IFRAMEs — see below); the only one that required some special code was Google Video (because they specify the width and height parameters with a “style” attribute).

Note: some websites, like Fox News and CNN, use a Javascript link (or an IFRAME) to embed video. This type of embed code will not work in LGF Pages — you’ll just get an empty string back. Here’s an example of Javascript embed code from Fox:

Jump to bottom

82 comments
1 Mocking Jay  Thu, May 27, 2010 12:49:07pm

That is all kinds of cool, Charles.

2 bluecheese  Thu, May 27, 2010 12:49:49pm

Is this what's causing quicktime to keep activating when I load LGF?

3 Charles Johnson  Thu, May 27, 2010 12:51:12pm

re: #2 bluecheese

Is this what's causing quicktime to keep activating when I load LGF?

No, that's the live BP oil leak video a few posts down.

4 S'latch  Thu, May 27, 2010 12:51:18pm

This sort of stuff frightens me.

5 Gus  Thu, May 27, 2010 12:53:13pm

Just tried that with a Hulu clip and got this:

You must be logged in to access this script.

6 bluecheese  Thu, May 27, 2010 12:53:21pm

re: #3 Charles

oh. That's what i figured. Why does this not happen when I load The Oil Drum, witch has the same link on it (i think)?

7 Charles Johnson  Thu, May 27, 2010 12:59:07pm

re: #5 Gus 802

Just tried that with a Hulu clip and got this:

You must be logged in to access this script.

Oops. Debug code left in. Try again, should work now.

8 Gus  Thu, May 27, 2010 1:01:22pm

re: #7 Charles

Oops. Debug code left in. Try again, should work now.

Awesome! Got a video up. Works like a charm.

This is really nice. Thanks Charles.

9 bluecheese  Thu, May 27, 2010 1:03:16pm

And i really like the featured pages feature.... I think it adds a lot to the site.

10 Fozzie Bear  Thu, May 27, 2010 1:04:25pm

Charles, you big nerd, bless you.

11 sattv4u2  Thu, May 27, 2010 1:07:50pm

As usual, I have no idea what any of this means

As long as I can still chat here, check my e-mails, play solitaire and occasionally check to make sure nobody I know has been in a porn movie (and of course the only way to do that is watch one,, JUST for research sake), I'm fine!!!

12 Fozzie Bear  Thu, May 27, 2010 1:09:07pm

re: #11 sattv4u2

You can never be too careful. I mean, it's the only way to be sure.

fapfapfapfapfapfapfap... "Just doing research, honey!"

13 Kragar  Thu, May 27, 2010 1:09:49pm

Cool, I can post this over the weekend then;

ULTRAMARINES TEASER COMING SOON

14 Charles Johnson  Thu, May 27, 2010 1:10:22pm

Looks like Rightwingconspirator managed to find a bug right away. What code did you paste in, RWC?

15 Kragar  Thu, May 27, 2010 1:11:06pm

re: #12 Fozzie Bear

You can never be too careful. I mean, it's the only way to be sure.

fapfapfapfapfapfapfap... "Just doing research, honey!"

Nothing wrong with research.

16 Fozzie Bear  Thu, May 27, 2010 1:11:45pm

re: #15 Kragar (Proud to be Kafir)

Anything for the pursuit of knowledge, I say.

17 b_sharp  Thu, May 27, 2010 1:12:58pm

re: #14 Charles

Looks like Rightwingconspirator managed to find a bug right away. What code did you paste in, RWC?

No matter how much you test your own code, a user will find a problem the first time.

18 Fozzie Bear  Thu, May 27, 2010 1:16:00pm

re: #17 b_sharp

No matter how much you test your own code, a user will find a problem the first time.

This is so, so true, if only because they will use it in a way you didn't think of.

It reminds me of writing papers in college. I would proofread them 20 times, then give it to a friend to look over. The friend would seemingly always find a couple of rather obvious errors that I missed, because when I am reading it, I see what I meant to say often, rather than what I did say. Similar things happen with code, in the sense that you have a certain use-case in mind when you write the code.

19 shiplord kirel  Thu, May 27, 2010 1:17:18pm

OT


Jamaica: 74 killed in hunt for alleged drug lord

That is an astonishing death toll for this kind of operation and it may be much worse than the authorities admit. This looks like a real drug war, not some kind of figurative "drug war" scenario.

20 bluecheese  Thu, May 27, 2010 1:17:27pm

so lets see if i can get this to work..

21 Darth Vader Gargoyle  Thu, May 27, 2010 1:17:47pm

Dude! You add features faster than I can even process them! You the Man!

22 sattv4u2  Thu, May 27, 2010 1:18:59pm

re: #18 Fozzie Bear

It reminds me of writing papers in college. I would proofread them 20 times, then give it to a friend to look over

I find that hard to beleive!!

Oh ,,no ,, not that you were in college, wrote papers, or proofread them 20 times

It's that "freind" part !!!

////

23 reine.de.tout  Thu, May 27, 2010 1:19:36pm

re: #21 rwdflynavy

Dude! You add features faster than I can even process them! You the Man!

Absolutely!
Worth supporting LGF a small bit, isn't it?

There's the donate button, there's the subscription button, and there's Cookbook Volume 2, Reality Bites.

24 Daniel Ballard  Thu, May 27, 2010 1:20:21pm

re: #14 Charles

ahhh crashed my Seamonkey, but here is the embed from my you tube

Crashed my seamonkey and my FF just now... Just right clicked the video to get the embed code. Can't get that code as somehow just copying it crashes the browser.

25 b_sharp  Thu, May 27, 2010 1:20:32pm

re: #18 Fozzie Bear

This is so, so true, if only because they will use it in a way you didn't think of.

It reminds me of writing papers in college. I would proofread them 20 times, then give it to a friend to look over. The friend would seemingly always find a couple of rather obvious errors that I missed, because when I am reading it, I see what I meant to say often, rather than what I did say. Similar things happen with code, in the sense that you have a certain use-case in mind when you write the code.

A user is unrestricted. When you code you follow a tight sequence of steps that seem 'common sense' and straight forward because of the boundaries set by the language, structure and environment. A user doesn't know anything about this so is free to make silly* choices.

*Silly in the context of what is required to have the code run reliably.

26 Daniel Ballard  Thu, May 27, 2010 1:20:56pm

re: #24 Rightwingconspirator

ahhh crashed my Seamonkey, but here is the embed from my you tube

Crashed my seamonkey and my FF just now... Just right clicked the video to get the embed code. Can't get that code as somehow just copying it crashes the browser.

I'm rebooting...

BRB

27 Kragar  Thu, May 27, 2010 1:21:34pm

re: #25 b_sharp

A user is unrestricted. When you code you follow a tight sequence of steps that seem 'common sense' and straight forward because of the boundaries set by the language, structure and environment. A user doesn't know anything about this so is free to make silly* choices.

*Silly in the context of what is required to have the code run reliably.

Systems run more efficiently once you've removed all pesky users from the equation.

28 b_sharp  Thu, May 27, 2010 1:22:17pm

re: #27 Kragar (Proud to be Kafir)

Systems run more efficiently once you've removed all pesky users from the equation.

No truer words have ever been said.

29 sattv4u2  Thu, May 27, 2010 1:22:21pm

re: #27 Kragar (Proud to be Kafir)

Systems run more efficiently once you've removed all pesky users from the equation.

I get thrown out of more places because of that rule!

30 Killgore Trout  Thu, May 27, 2010 1:23:18pm

Dog Surprises Officer After Being Freed From A Fence

31 Cato the Elder  Thu, May 27, 2010 1:23:18pm

My latest LGF Page.

A rundown of free apps I've recently added to my iPhone library.

32 IsraelForever  Thu, May 27, 2010 1:24:10pm

New member here. Keep up the great work, Charles.

33 Darth Vader Gargoyle  Thu, May 27, 2010 1:24:25pm

re: #23 reine.de.tout

Absolutely!
Worth supporting LGF a small bit, isn't it?

There's the donate button, there's the subscription button, and there's Cookbook Volume 2, Reality Bites.

Got my Vol 2 and made a donation recently as well. Still feel like I'm getting much more than my money's worth!

34 Locker  Thu, May 27, 2010 1:24:48pm

Charles here is a question I posted way late to the last Technical Note thread and I'm still curious so I'll throw it up again...

Question regarding text formatting. If I look at one of your posts, say this one as an example:

[Link: littlegreenfootballs.com...]

You've got that cool, dark background and border around your quoted text. Are we able to produce the same effect using a tag of some sort. Not asking for you to do extra work, just asking if it's there already.

Thanks for all you gear head grinding man, it looks fantastic.

35 sattv4u2  Thu, May 27, 2010 1:25:30pm

re: #32 IsraelForever

New member here. Keep up the great work, Charles.

This is no time to be talkling about your penile implant!!

///
Welcome

36 Dark_Falcon  Thu, May 27, 2010 1:27:26pm

re: #32 IsraelForever

New member here. Keep up the great work, Charles.

Welcome. Glad to have on board.

37 Charles Johnson  Thu, May 27, 2010 1:29:06pm

re: #34 Locker

Charles here is a question I posted way late to the last Technical Note thread and I'm still curious so I'll throw it up again...

Question regarding text formatting. If I look at one of your posts, say this one as an example:

[Link: littlegreenfootballs.com...]

You've got that cool, dark background and border around your quoted text. Are we able to produce the same effect using a tag of some sort. Not asking for you to do extra work, just asking if it's there already.

Thanks for all you gear head grinding man, it looks fantastic.

What you're asking for is a way to change the stylesheet, and alter the way your Pages look -- and right now, no, you can't do that. That's one area where LGF Pages isn't quite like having your own hosted blog -- you don't have the same control over the appearance. I've been thinking of ways to add this kind of functionality, but nothing has materialized yet.

38 cliffster  Thu, May 27, 2010 1:29:38pm

re: #32 IsraelForever

New member here. Keep up the great work, Charles.

I'll take a Dos Equis, with a slice of lime. Poured into a cold, frosty mug.

39 sattv4u2  Thu, May 27, 2010 1:30:49pm

re: #38 cliffster

I'll take a Dos Equis, with a slice of lime. Poured into a cold, frosty mug.

Where are you goint to take it, out to dinner and a movie?

40 Killgore Trout  Thu, May 27, 2010 1:31:54pm

GOP and immigration

-- In 2004, Dems held a 22-point edge in party identification among Latinos (49%-27%)
-- In 2005, it was 24 points (48%-24%)
-- In 2006, it was 26 points (50%-22%)
-- In 2007, it was 30 points (52%-22%)
-- In 2008, it was 35 points (57%-22%)
-- In 2009, it was 31 points (50%-19%)
-- And so far in 2010, it has been 36 points (58%-22%).
41 Kragar  Thu, May 27, 2010 1:32:40pm

Additionally, from a IT perspective, Technicians who don't follow procedures should be impaled on pikes as warnings to others.

3 days in a row, same guy, same problem.

42 Locker  Thu, May 27, 2010 1:33:07pm

re: #37 Charles

What you're asking for is a way to change the stylesheet, and alter the way your Pages look -- and right now, no, you can't do that. That's one area where LGF Pages isn't quite like having your own hosted blog -- you don't have the same control over the appearance. I've been thinking of ways to add this kind of functionality, but nothing has materialized yet.

Definitely don't want to request new functionality just checking for existing tags, etc. Thanks for providing me with a much needed clue.

43 Locker  Thu, May 27, 2010 1:33:57pm

re: #31 Cato the Elder

My latest LGF Page.

A rundown of free apps I've recently added to my iPhone library.

Cool post. I'll be passing it on the the Iphone owner in the family... namely the wifey.

44 Cato the Elder  Thu, May 27, 2010 1:34:12pm

re: #37 Charles

What you're asking for is a way to change the stylesheet, and alter the way your Pages look -- and right now, no, you can't do that. That's one area where LGF Pages isn't quite like having your own hosted blog -- you don't have the same control over the appearance. I've been thinking of ways to add this kind of functionality, but nothing has materialized yet.

Again, as with images in comments on the main blog, I recommend against it.

The uncluttered look of LGF is one of my favorites things about this place.

45 Cato the Elder  Thu, May 27, 2010 1:34:36pm

re: #32 IsraelForever

New member here. Keep up the great work, Charles.

Go make me a Vesper.

46 Cato the Elder  Thu, May 27, 2010 1:35:17pm

re: #45 Cato the Elder

And a sammich.

47 Locker  Thu, May 27, 2010 1:36:22pm

re: #46 Cato the Elder

And a sammich.

I'd prefer a sandvich....

48 lawhawk  Thu, May 27, 2010 1:38:25pm

re: #41 Kragar (Proud to be Kafir)

Ah, an ID-10-T error... I hate when that happens..

49 cliffster  Thu, May 27, 2010 1:39:16pm

re: #39 sattv4u2

Where are you goint to take it, out to dinner and a movie?

What happens between me and my beer is none of your business.

50 Locker  Thu, May 27, 2010 1:39:21pm

re: #48 lawhawk

Ah, an ID-10-T error... I hate when that happens..

Around here we call that a PEBKAC error but the term does have merit...

51 lawhawk  Thu, May 27, 2010 1:39:26pm

re: #45 Cato the Elder

Especially if it's this one...

52 cliffster  Thu, May 27, 2010 1:40:35pm

re: #31 Cato the Elder

My latest LGF Page.

A rundown of free apps I've recently added to my iPhone library.

you should play "Words With Friends" It's like scrabble.

53 lawhawk  Thu, May 27, 2010 1:40:59pm

Setback in the top kill... hopefully a minor problem and not a major setback...

54 Daniel Ballard  Thu, May 27, 2010 1:42:46pm

re: #14 Charles

I'm back up and running, what did I do wrong?

55 b_sharp  Thu, May 27, 2010 1:43:28pm

re: #41 Kragar (Proud to be Kafir)

Additionally, from a IT perspective, Technicians who don't follow procedures should be impaled on pikes as warnings to others.

3 days in a row, same guy, same problem.

NooO00OO0oo!!

56 avanti  Thu, May 27, 2010 1:44:19pm

Just saw a GOP Congressman on Fox bitching about the 1200 National Guardmen's deployment to the boarder to "push paper". His solution to the illegals ? 25,000 Guardsman with the ability to "light them up" Even Cavuto seemed confused and quickly ended the interview.

57 Kragar  Thu, May 27, 2010 1:44:21pm

re: #48 lawhawk

Ah, an ID-10-T error... I hate when that happens..

Certain steps are supposed to be completed prior to me even being joined to a call. 3 days running, I get called in, get stuck twiddling my thumbs for an hour only to find out dipshit didn't set things up right.

I'll need a sheer of wax paper, a length of twine, and a small citrus fruit to exact my revenge.

58 Charles Johnson  Thu, May 27, 2010 1:44:25pm

re: #54 Rightwingconspirator

I'm back up and running, what did I do wrong?

I don't know what you pasted in to the 'Embed code' prompt...

59 Daniel Ballard  Thu, May 27, 2010 1:44:45pm

Does anyone know if blogger.com video has embed code? I can not find it.

60 Tiny Alien Kitties are Watching You  Thu, May 27, 2010 1:45:29pm

Thank you Charles for working so hard on giving us new tools to make this place better. Giving everyone their own platform to preach from definitely qualifies as going above and beyond the norm.

/hmm...I suppose the stalkers will still find a way to say that we are all being suppressed just by posting here. But this should make it a lot harder for them to be in the least convincing, even to the newbs. ;)

61 Daniel Ballard  Thu, May 27, 2010 1:47:06pm

re: #58 Charles

I right clicked the video & selected "Copy embed html" and pasted it into my page. Then all kinds of things went wrong, all fixed with a reboot. I'm a bit reluctant to try that again so this is the address the video is on at youtube

I'll try again after posting this comment.

62 Daniel Ballard  Thu, May 27, 2010 1:47:48pm

re: #58 Charles

This is it

63 Daniel Ballard  Thu, May 27, 2010 1:48:06pm

...

64 Mocking Jay  Thu, May 27, 2010 1:48:24pm

re: #62 Rightwingconspirator

piyf :P

65 Daniel Ballard  Thu, May 27, 2010 1:48:33pm

re: #58 Charles

Okay that just disappeared I am way over my head here. Sorry.

66 Mocking Jay  Thu, May 27, 2010 1:50:40pm

re: #65 Rightwingconspirator

It should work if you just leave off the first

67 Charles Johnson  Thu, May 27, 2010 1:50:47pm

re: #61 Rightwingconspirator

I right clicked the video & selected "Copy embed html" and pasted it into my page. Then all kinds of things went wrong, all fixed with a reboot. I'm a bit reluctant to try that again so this is the address the video is on at youtube

[Video]

I'll try again after posting this comment.

I just tried it - it worked. Go edit your Page and add the video that way. (The Embed Video' button is also in the editing popup.)

68 Mocking Jay  Thu, May 27, 2010 1:50:56pm

re: #66 JasonA

The first symbol. Dammit, Beavis.

69 Charles Johnson  Thu, May 27, 2010 1:51:29pm

You won't be able to paste embed code into an LGF comment. It's stripped out for security reasons.

70 Darth Vader Gargoyle  Thu, May 27, 2010 1:51:36pm
My wife of 12 years recently packed up her belongings and moved out of our home. After her car was loaded I couldn't help but notice that a single item remained in her section of our closet, her wedding dress.
"You forgot something" I told her.
She replied "And what's that?".
"Your wedding dress", I said.
"Yeah, I am not taking that" was her response.
"What do you expect me to do with it?" I asked.
And to that she replied, "Whatever the $%^@# you want".


Hilarity ensues:
http://myexwifesweddingdress.com/

71 Mocking Jay  Thu, May 27, 2010 1:53:12pm

re: #70 rwdflynavy

Okay, that guy needs to let go.

72 Charles Johnson  Thu, May 27, 2010 1:56:02pm

RWC: you're not pasting in the embed code correctly for some reason. Maybe you're clipping off part of it or something?

73 Mocking Jay  Thu, May 27, 2010 1:56:58pm

re: #70 rwdflynavy

I really love that GoogleAds thinks it's a good idea to try to sell wedding dresses on that site.

74 Daniel Ballard  Thu, May 27, 2010 1:58:39pm

re: #72 Charles

I'll look further and keep trying. But my error is trusting the clip and paste function. I'll paste into notebook and compare...
BRB

75 webevintage  Thu, May 27, 2010 2:10:36pm

re: #31 Cato the Elder

My latest LGF Page.

A rundown of free apps I've recently added to my iPhone library.

I don't have an iPhone, but my iPod Touch uses a lot of the apps put out.
My Amazon Kindle app is my favorite app of all and I am always on the look out for free book (published before 1929?) recommendations.

76 Bagua  Thu, May 27, 2010 2:19:25pm

re: #53 lawhawk

Setback in the top kill... hopefully a minor problem and not a major setback...

It's not minor. The leak flow rate is higher than was believed, all the mud on the first supply tanker has been pumped with the majority flowing right through the leaks above the BOP. They need to bung up the leaking holes before they can inject cement. It looks like time for plan B, junk shot with its additional risks.

Looks like the leak is two to four times larger than what BP was estimating. In line with the new estimates from the teams of scientists tasked with calculating the flow rate.

77 blueraven  Thu, May 27, 2010 2:20:54pm

re: #38 cliffster

I'll take a Dos Equis, with a slice of lime. Poured into a cold, frosty mug.

Now that's what I like to hear! Make it two, please.

Welcome IsraelForever!

78 albusteve  Thu, May 27, 2010 2:21:00pm

everybody playing with Charles new toy...working out kinks and getting it down, what's not to like watching people have fun?

79 Daniel Ballard  Thu, May 27, 2010 2:32:15pm

re: #72 Charles

Yup, the code got cut short by something, I know not what.
Got it now though!

[Link: littlegreenfootballs.com...]

80 Charles Johnson  Thu, May 27, 2010 2:42:32pm

re: #79 Rightwingconspirator

Yup, the code got cut short by something, I know not what.
Got it now though!

[Link: littlegreenfootballs.com...]

Groovy.

81 Daniel Ballard  Thu, May 27, 2010 3:05:39pm

re: #80 Charles

Er, the video has some specific details not allowed in regular posts. Email, etc. Like my work info. I am fine with that as we promote the video to promote the company. Besides I'm not hiding behind my nic just using it.

If you feel the rule should/does apply to videos, feel free to delete it. It looks great though. Heh, me and my 7d are going to get busy...

82 Charles Johnson  Thu, May 27, 2010 3:10:15pm

re: #81 Rightwingconspirator

Er, the video has some specific details not allowed in regular posts. Email, etc. Like my work info. I am fine with that as we promote the video to promote the company. Besides I'm not hiding behind my nic just using it.

If you feel the rule should/does apply to videos, feel free to delete it. It looks great though. Heh, me and my 7d are going to get busy...

If they're your details and you want to post them, I have no problem. You have the power to edit and remove them too.


This article has been archived.
Comments are closed.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
Detroit Local Powers First EV Charging Road in North America The road, about a mile from Local 58's hall, uses rubber-coated copper inductive-charging coils buried under the asphalt that transfer power to a receiver pad attached to a car's underbelly, much like how a phone can be charged wirelessly. ...
Backwoods Sleuth
3 days ago
Views: 191 • Comments: 1 • Rating: 4