[Ga: een map omhoog, voorpagina, Flexwebhosting.nl]

Sign InRegisterForgotten password?

RebelmouseTwitterFacebook

Tech Note: Yet Another LGF Pages Bookmarklet Update

But this version will make updating much easier
LGF • Views: 216

I know, right? Another one, just a day later? But this one actually will make it possible for me to update the types of auto-embed content the LGF Pages bookmarklet can identify — without making you re-install the bookmarklet to take advantage of the new features.

When you open this new version of the bookmarklet, it “phones home” to littlegreenfootballs.com no matter which site you’re on, and gets a file with the information it needs to find embedded video and audio in the current page. The cool thing about doing it this way is that it lets me add new embed types to the file on our server, and the bookmarklet automatically starts using them the next time you open it — no reinstallation necessary any more!

To get the new extensible version of the bookmarklet, reinstall it one more time by first deleting the old one (either by dragging it off the bookmark bar or by right-clicking and choosing “Delete”), then dragging the button labeled “Create a Page” (at the top of the right sidebar) to your bookmark bar in its place.

A trouble-shooting tip: if you click the bookmarklet and no window (or tab) opens, it’s probably because popups have been blocked by the browser. Most browsers have popup blocking on by default. The easiest way to handle this is to turn popup blocking off entirely; you can also allow popups on specific sites in the browser’s Preferences, but for posting purposes it’s a nuisance to do this for every site you might want to post something about.

The technical details

This new bookmarklet is actually calling our brand spanking new API (version 0.1, a one-day old baby), using the JSONP technique to get around the Javascript same-origin policy that would normally prevent this kind of cross-site access.

This happens in the jQuery.ajax() method beginning at line 27. It makes a call to the API at:

http://littlegreenfootballs.com/api/0.1/postRegex

jQuery handles all the details of the JSONP call (with its necessary callback function), parses the JSON response, and returns the data in the object lgf — in this case it consists of two regular expression definitions that are used on lines 34 and 36.

(function() {
	var j = '1.9.1', d = document;
	if (window.jQuery === undefined || window.jQuery.fn.jquery < j) {
		var done = false, s = d.createElement('script');
		s.src = '//ajax.googleapis.com/ajax/libs/jquery/' + j + '/jquery.min.js';
		s. = function(){
			if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
				done = true;
				jQuery.noConflict();
				lgfPost();
			}
		};
		d.getElementsByTagName('head')[0].appendChild(s);
	} else {
		lgfPost();
	}
	function esc(s) {
		return escape(s).replace(/\+/ig, '%252B');
	}
	function lgfPost() {
		(window.postPage = function() {
			var f = q = w = '',
				u = esc(location.href),
				d = document,
				t = esc(d.title),
				s = esc((d.selection) ? d.selection.createRange().text : d.getSelection());
			jQuery.ajax({
				type: 'GET',
				url: 'http://littlegreenfootballs.com/api/0.1/postRegex',
				jsonpCallback: 'lgf_api',
				dataType: 'jsonp',
				success: function(lgf) {
					ob = jQuery('iframe').filter(function() {
						return this.src.match(RegExp(lgf.regex.embed, 'i'));
					});
					if (ob.length && !u.match(RegExp(lgf.regex.sites, 'i'))) {
						f = esc(ob.eq(0).attr('src'));
					}
					q = (
						'u=' + u +
						'&t=' + t +
						'&f=' + f +
						'&s=' + s
					);
					w = (
						'width=670,' +
						'height=820,' +
						'scrollbars=1,' +
						'status=1,' +
						'menubar=1,' +
						'location=1,' +
						'resizable=1'
					);
					window.open('http://littlegreenfootballs.com/weblog/lgf-postpage.php?' + q, '_blank', w);
				}
			});
		})();
	}
})();
Advertisement

Glenn Beck: AP and IRS Scandals Are Just Cover-Ups for the Benghazi Cover-Up

Paranoia that eats its own tail
Wingnuts • Views: 1,666

An alternate title for this post might be, “The Recursive Conspiracy Theories of a Raving Freakazoid,” as our favorite right wing nut sandwich just continues to chase his own paranoid tail. Here he is opining that the AP and IRS “scandals” are really just attempts to cover up the Benghazi cover-up, because “that is literally where the bodies are buried.”

Via: Right Wing Watch.

Tech Note: LGF Pages Bookmarklet Supports Scribd and SoundCloud

Making blogging easier
LGF • Views: 6,316

I’m about to sling some code at you here, so watch out. There’s a new improved version of the LGF Pages bookmarklet, and if you have an LGF account you can install it by deleting the old one (if you already installed it) from your browser’s bookmarks bar, then dragging the “Create a Page” button to the bookmarks bar in its place.

The new version extends our exclusive auto-embed feature to add Scribd.com and SoundCloud to the auto-detected embed types. If you open the bookmarklet on any page containing an embedded Scribd document or SoundCloud audio file, it will be automatically added to your Page. If you want to test it out, here’s a page at Right Wing Watch with an embedded SoundCloud file: Radio Host Frequented by Gun Activists Calls for Shooting of Bush Family & Obama, Sexual Violence Against Hillary Clinton | Right Wing Watch.

Here’s the source code for the bookmarklet, in the interest of full disclosure. (Also because I want to test the latest version of our source code formatter.)

There are a couple of interesting tricks in this one; notice the method of loading jQuery by injecting a script tag into the page. I’ll leave the rest as an exercise for the nerds amongst us.

The bookmarklet source code:

(function() {
	var j = '1.9.1', d = document;
	if (window.jQuery === undefined || window.jQuery.fn.jquery < j) {
		var done = false, s = d.createElement('script');
		s.src = '//ajax.googleapis.com/ajax/libs/jquery/' + j + '/jquery.min.js';
		s. = function(){
			if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
				done = true;
				jQuery.noConflict();
				init();
			}
		};
		d.getElementsByTagName('head')[0].appendChild(s);
	} else {
		init();
	}
	function esc(s) {
		return escape(s).replace(/\+/ig, '%252B');
	}
	function init() {
		(window.LGF_post = function() {
			var f = q = w = '',
				u = esc(location.href),
				d = document,
				t = esc(d.title),
				s = esc((d.selection) ? d.selection.createRange().text : d.getSelection()),
				ob = jQuery('iframe').filter(function() {
					return this.src.match(/https?:\/\/(www\.youtube|player\.vimeo\.|w\.soundcloud\.com\/player|www\.scribd\.com\/embeds\/)/i);
				});
			if (ob.length && !u.match(/www\.youtube\.com\/|vimeo\.com\/|soundcloud\.com|www\.scribd\.com/i)) {
				f = esc(ob.eq(0).attr('src'));
			}
			q = (
				'u=' + u +
				'&t=' + t +
				'&f=' + f +
				'&s=' + s
			);
			w = (
				'width=670,' +
				'height=820,' +
				'scrollbars=1,' +
				'status=1,' +
				'menubar=1,' +
				'location=1,' +
				'resizable=1'
			);
			window.open('http://littlegreenfootballs.com/weblog/lgf-postpage.php?' + q, '_blank', w);
		})();
	}
})();

And here’s the minified version created with Google Closure Compiler:

(function(){function b(b){return escape(b).replace(/\+/ig,"%252B")}function d(){(window.LGF_post=function(){var a=q=w="",d=b(location.href),c=document,f=b(c.title),c=b(c.selection?c.selection.createRange().text:c.getSelection()),e=jQuery("iframe").filter(function(){return this.src.match(/https?:\/\/(www\.youtube|player\.vimeo\.|w\.soundcloud\.com\/player|www\.scribd\.com\/embeds\/)/i)});e.length&&!d.match(/www\.youtube\.com\/|vimeo\.com\/|soundcloud\.com|www\.scribd\.com/i)&&(a=b(e.eq(0).attr("src"))); q="u="+d+"&t="+f+"&f="+a+"&s="+c;w="width=670,height=820,scrollbars=1,status=1,menubar=1,location=1,resizable=1";window.open("http://littlegreenfootballs.com/weblog/lgf-postpage.php?"+q,"_blank",w)})()}var f=document;if(void 0===window.jQuery||"1.9.1">window.jQuery.fn.jquery){var e=!1,a=f.createElement("script");a.src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";a."loaded"==this.readyState||"complete"==this.readyState))e= !0,jQuery.noConflict(),d()};f.getElementsByTagName("head")[0].appendChild(a)}else d()})();

Colbert Report: Why Does Eric Holder Hate Louie Gohmert’s Asparagus?

Asparagusgate
Humor • Views: 9,683

(Click below if you can’t see the MP4 video above.)

Daily Caller Cooks Up Another Stupid Scandal, Commenters Spew Vile Racism

“Umbrellagate?” Are they serious?
Wingnuts • Views: 11,667

The mind-numbingly stupid right wing fake outrage of the day: yes, now they’re even going after the President for asking Marines to hold umbrellas for himself and the Turkish Prime Minister. I just can’t even.

The hacks at wingnut propaganda site The Daily Caller lead the charge, but it’s on every single right wing blog and media website, of course, because they do this stuff in lockstep unison like good little authoritarians: Obama Breaches Marine Umbrella Protocol | the Daily Caller.

Did Obama “breach protocol?” Let’s see what the Marine Corps has to say about it:

Seeing a Marine with this particular accessory is “extremely rare,” Marine Corps spokesman Capt. Greg Wolf explained, but because the president’s the commander in chief of the Armed Forces, if he says “hold my umbrella,” it’s permissible.

The sad thing is that this laughable story actually ended up on the front pages of the New York Post, The Wall Street Journal, The Washington Post, The Washington Times and the Los Angeles Times.

This is why the wingnut lockstep army does this kind of freakishly moronic outrage-mongering — because the mainstream media enables it.

Meanwhile, again as usual, the commenters for the Daily Caller’s rage-inducing article are, yes, spewing all kinds of vile racism. They got the subtext right away — it’s a white man holding an umbrella for a black President.

I thought afro-sheen was waterproof?

[…]

Just another occasion where Obama shows his “superiority” to any and everyone around him. Shameful.

[…]

Just another example of the illegitimate Kenyan illegal alien’s arrogance, ignorance, and contempt for the military - and the Marine Corps in particular.

[…]

Next they’ll be carrying shopping bags for Michelle as she strolls ‘Miracle Mile’ looking for a bargain.

[…]

I would roll that umbrella up and shove it where the sun don’t shine. Kenyan Fraud. III%

[…]

The MONKEY BOY BATH HOUSE QUEEN WOULD MELT if SHE GOT WET!!!!!

[…]

Too funny! The first black man given the opportunity to run the most powerful country on earth and he turns out to be no different than all the other two bit corrupt black dictators around the world. For all the world to see no less. Way to go BO!

[…]

Someone…please throw some shoes at this Kenyan clown!!

On and on it goes — currently there are more than 1700 comments, almost all spewing hatred and deranged conspiracy theories. The right wing base in all its glory.

Also see:
Guest Post From a U.S. Marine About Barack Obama’s Shocking and Disgusting Use of an Umbrella

CBS Evening News: Republican Sources Caught Doctoring Emails

MSM now figuring this out but of course, Dr. Johnson was already on this trail a few days ago.
Politics • Views: 18,970

SCOTT PELLEY: Also at his news conference today the president called for tighter security for U.S. diplomatic facilities to prevent an attack like the one in Benghazi, Libya, last year that killed U.S. Ambassador Chris Stevens and three other Americans. Of course, Benghazi has become a political controversy. Republicans claim that the Administration watered down the facts in talking points that were given to U.N. Ambassador Susan Rice for television appearances while Mr. Obama was running for reelection. Republicans on Capitol Hill claim that they had found proof of this in White House e-mails that they leaked to reporters last week. Well, it turns out some of the quotes in those e-mails were wrong. Major Garrett is at the White House for us tonight. Major?

MAJOR GARRETT: Scott, Republicans have claimed that the State Department under Hillary Clinton was trying to protect itself from criticism. The White House released the real e-mails late yesterday and here’s what we found when we compared them to the quotes that had been provided by Republicans. One e-mail was written by Deputy National Security Advisor Ben Rhodes. On Friday, Republicans leaked what they said was a quote from Rhodes. “We must make sure that the talking points reflect all agency equities, including those of the State Department, and we don’t want to undermine the FBI investigation.” But it turns out, in the actual e-mail Rhodes did not mention the State Department. It read “We need to resolve this in a way that respects all the relevant equities, particularly the investigation.” Republicans also provided what they said was a quote from an e-mail written by State Department Spokesman Victoria Nuland. The Republican version notes Nuland discussing: “The penultimate point is a paragraph talking about all the previous warnings provided by the Agency (CIA) about al-Qaeda’s presence and activities of al-Qaeda.” The actual e-mail from Nuland says: the “…penultimate point could be abused by Members to beat the State Department for not paying attention to Agency warnings…” The C.I.A. agreed with the concerns raised by the State Department and revised the talking points to make them less specific than the C.I.A.’s original version, eliminating references to al-Qaeda and affiliates and earlier security warnings. There is no evidence, Scott, the White House orchestrated these changes.

More: Wow, This Is Pretty Epic

Also see:
WH Benghazi Emails Have Different Quotes Than Earlier Reported

Glenn Beck’s Crazy Crypto-Racist Rant of the Day: Whites Lynched by KKK Would Be Tea Partiers Today

Why you so crazy?
Wingnuts • Views: 16,918

On his radio program today, Glenn Beck uncorked a bizarre rant about the NAACP and Martin Luther King and Booker T. Washington and by the way, 20 PERCENT OF KKK LYNCHINGS WERE OF WHITE PEOPLE! AND THEY’D BE TEA PARTIERS TODAY!

Beck’s strategy for defending himself against charges of racism seems to be to confuse the issues so thoroughly that nobody can figure out what the hell he’s trying to say. But yeah, he’s still a racist pig.

“They are a joke,” Beck said of the NAACP, calling them “an affront” to everything that Martin Luther King, Frederick Douglass, and Booker T. Washington stood for. “You are an affront to their memory. You really are.”

Somehow, that discussion then prompted Beck to declare that “20% of the lynchings [carried out] by the KKK were of white people … and you know what, I contend [that] the white people that were lynched are exactly the kind of people that would be in the Tea Party today.”

Via: Right Wing Watch.

GOHMERT!

Fear the bristling Gohmert
Wingnuts • Views: 16,650
Bristling Gohmert

The dumbest man in Congress, Texas Representative Louie “Terror Babies from the Future” Gohmert, got all lathered up yesterday because Eric Holder said, in so many words, that Gohmert didn’t know WTF he was talking about when he asked a weird, pointless question about some tortuous Muslim-Christian persecution fantasy he apparently got from World Net Daily. So the hearing wasn’t a complete waste.

“Because of political correctness, there was not a thorough enough investigation of Tamerlan to determine this kid had been radicalized,” Gohmert said of one of the Boston bombing suspects. “On the one hand, we go after Christian groups like Billy Graham’s group - we go after Franklin Graham’s group - but then we’re hands-off when it comes to possibly offending someone who has been radicalized as a terrorist.”

Holder responded by saying that Gohmert didn’t have access to all of the facts.

“Unless somebody has done something inappropriate, you don’t have access to the FBI files,” he said. “I know what the FBI did. You cannot know what I know.”

Gohmert bristled at the suggestion that he was making false statements, repeatedly telling Holder that he “challenged my character.”

Related:
Louie ‘Terror Babies’ Gohmert: Aurora Shootings Caused by Not Enough God

Pickering and Mullen Don’t Trust Darrell Issa - and They Shouldn’t

Issa doesn’t want the public to hear what they have to say
Politics • Views: 19,726

Former Ambassador Thomas Pickering and former chairman of the Joint Chiefs of Staff Adm. Mike Mullen, who oversaw the Accountability Review Board that reviewed the government’s response to the Benghazi attack, are clearly unhappy with Republican hitman Darrell Issa and his distorted characterizations of their work: Pickering, Mullen Challenge Issa to Let Them Testify in Public.

The dispute between Issa and the co-chairmen came to a head after neither Pickering nor Mullen attended a May 8 House Oversight Committee hearing on the attacks, sparking a heated back and forth about who was invited and when. The rhetoric intensified Sunday during a highly contentious joint appearance with Issa and Pickering on NBC’s “Meet the Press” in which Issa maintained the two “refused to come before our committee.” Pickering insisted that he was not invited despite expressing a willingness to testify.

“Chairman Issa sent word back that he might want to take me up some time in the future” Pickering said.

Issa also suggested on the program that Pickering and Mullen meet with the committee behind closed doors so as not to create “some sort of stage show.” But the two assert in their letter that a public hearing is a “more appropriate forum” and accuse Issa of changing his “position on the terms of our appearance.”

By demanding that the hearing be open to the public, it’s clear that Pickering and Mullen simply don’t trust the blatantly partisan Issa to tell the truth — and they shouldn’t.

^ back to top ^

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...

► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form
LGF Pages Create a Page
This 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 and text already filled in.
Recent Pages
FemNaziBitch
A Married Man’s Sexual Epiphany — the Good Men Project
Your sex appeal shoots through the roof! You achieve the status of "sexy man". Your wife sees you in a new attractive light which is the only light that allows her to see you this way. In fact, many other women notice as well--wherever you are. You morph into that man other guys envy and women adore. And until now, you had no ...

4 hours, 7 minutes ago
Views: 88 • Comments: 0
Tweets: 0 • Rating: 0
Skip Intro
Mountain of Petroleum Coke From Oil Sands Rises in Detroit
WINDSOR, Ontario -- Assumption Park gives residents of this city lovely views of the Ambassador Bridge and the Detroit skyline. Lately they've been treated to another sight: a three-story pile of petroleum coke covering an entire city block on the other side of the Detroit River. Detroit's ever-growing black mountain is the unloved, unwanted and long overlooked byproduct of Canada's oil sands boom. ...

6 hours, 45 minutes ago
Views: 107 • Comments: 2
Tweets: 0 • Rating: 0
theye1
The Greatest (Movie) Speech Ever Made
73 years later is still relevant and powerful as ever. It's also because of this movie that Charlie Chaplin was labelled a "premature anti-fascist."

17 hours, 52 minutes ago
Views: 201 • Comments: 6
Tweets: 0 • Rating: 5
Romantic Heretic
The Singing Ringing Tree
Some people built this strange looking statue in England. And this is what it sounds like. Youtube Video

18 hours, 52 minutes ago
Views: 81 • Comments: 1
Tweets: 0 • Rating: 2
Vicious Babushka
Tonight’s Shabbos Menu (& Recipes)
Tonight's menu: Baked Gefilte FishBroiled Rainbow TroutRedskin Potato SaladChicken Noodle Soup Wine: Herzog ZinfandelDessert: Frozen Strawberry Daquiri Tomorrow's menu: Gefilte Fish, TroutRomaine/Avocado SaladOlive Pasta SaladRedskin Potato Salad Wine: Herzog Orange MuscatDessert: Frozen Margaritas Middle East Fried Chicken Recipe 1 broiler chicken, cut into 8ths1/4 c. unbleached flour1/2 c. Panko breadcrumbs1 Tbsp. Za'atar seasoning1 Tbsp. olive oil Preheat oven to 425. Put 1 Tbsp oil ...

22 hours, 9 minutes ago
Views: 136 • Comments: 1
Tweets: 1 • Rating: 4
Haywood Jabloeme
Allen West Named Fox News Contributor
"Representative West's congressional and military experience along with his fearless approach to voicing key issues will provide a valuable point of view to the Fox News lineup," Fox News Vice President Bill Shine said in a statement. More: Allen West Named Fox News Contributor Its categorized as "Entertainment" since even the Fox News Channel itself makes a distinction between "Hard News" and "Entertainment". ...

23 hours, 51 minutes ago
Views: 134 • Comments: 1
Tweets: 0 • Rating: 0
Michael McBacon
4 Things We Should Remember When Arguing About Politics
Political discourse in America has reached levels of douchebaggery previously only theorized about but never observed, like conversational dark matter. We're in a whole new world of hating people based solely on their opinions on a few key issues, and since this is unexplored territory, our conversations about politics are usually only a couple notches beyond the "hold your breath until the other ...

1 day, 3 hours ago
Views: 236 • Comments: 0
Tweets: 0 • Rating: 2
Political Atheist
LAPD Reformed as Federal Oversight Lifted, City Leaders Say
Los Angeles leaders say the Los Angeles Police Department has undergone a dramatic transformation since federal oversight of the agency was ordered 12 years ago. The dismissal Wednesday of the so-called consent decree, which arose largely out of the Rampart corruption scandal and addressed basic problems of accountability that stretched back decades, delivered a largely symbolic, but nonetheless important milestone for the LAPD ...

1 day, 3 hours ago
Views: 130 • Comments: 3
Tweets: 0 • Rating: 4
Feline Fearless Leader
What to do in Orange County - LA - San Diego
Seems a good way to solicit ideas for touristing destinations and activities. Will have 4-5 days so some opportunity for visiting multiple sites. And since I do have an interest in history and military history items in that area will be welcome suggestions. (The USS Midway down in San Diego is already on the list.) If there is anything California-geology related that would be ...

1 day, 5 hours ago
Views: 112 • Comments: 4
Tweets: 0 • Rating: 4
Randall Gross
Sam Harris: The Fireplace Delusion
I hate to have to point this out, but: I DID NOT WRITE THIS ESSAY. I'm just READING IT ALOUD. This essay came to my attention recently, and it's an excellent exercise for a skeptic or atheist to experience this feeling of loss of innocence and the painful feelings it summons. See it through to the end before posting, please. The source:samharris.org Next ...

2 days, 3 hours ago
Views: 286 • Comments: 1
Tweets: 0 • Rating: 2
 Frank says:

Anything played wrong twice in a row is the beginning of an arrangement.