Google Video Frame Remover

Last update on Jul 12, 2008

Removes the frame from Google Video search results.

This script rewrites links on the Google Video search result pages to go directly to the videos rather than Google Video-hosted pages with the side frame. If the script does encounter the frame, it will remove it.

Changelog

0.3 (July 12, 2008)
Should now rewrite links on Google Video search result pages. (Thanks ekbworldwide)
0.2 (June 5, 2008)
Was broken, now fixed.
0.1 (April 21, 2008)
Initial version.




You could comment on this script if you were logged in.

8 comments Feed-icon

1 point
login to vote
ekbworldwide scriptwright
Posted Sep 15, 2008

>> It works for me with 100 results.

Hmm... I've got loads of scripts and add-ons. Could be a conflict with something.

1 point
login to vote
Jordon Kalilich script's author
Posted Sep 14, 2008

It works for me with 100 results.

1 point
login to vote
ekbworldwide scriptwright
Posted Sep 13, 2008

Quoting myself

>> My preferences are 100 results.

Could it be the large number of results?

1 point
login to vote
Jordon Kalilich script's author
Posted Sep 13, 2008

I'm not sure what could be causing that. I haven't been getting the bug at all.

1 point
login to vote
ekbworldwide scriptwright
Posted Sep 13, 2008

>> Jul 22, 2008

The bug has returned. But it's nastier now.

I search google through keyword searches.

http://video.google.com/videosearch?q=intitle:%22%s%22&sitesearch=&so=4

My preferances are 100 results.

This search...

intitle:"Jake Shimabukuro" - Google Video
http://video.google.com/videosearch?q=intitle:%...

...crashed ff over and over again.

I reinstalled your script - and it's working - for now.

1 point
login to vote
Jordon Kalilich script's author
Posted Jul 22, 2008

It works fine for me.

1 point
login to vote
ekbworldwide scriptwright
Posted Jul 22, 2008

Did google just change something? I had to turn off your script - I kept getting...

the javascript debug dialog box
[cancel script] [stop script] [debug script]

1 point
login to vote
ekbworldwide scriptwright
Posted Jul 12, 2008

:D

1 point
login to vote
ekbworldwide scriptwright
Posted Jul 9, 2008

New idea - will this work to clean links???

I bet most hits have direct urls that can be grabbed right off the search results page.

Why not grab the url based on one of three things in the search results...

1
If the video has "Watch view here" - its url.

2
The url of the sample picture on the left. This works for youtube.

3
If the video has "View thumbnails" - their urls. This works for youtube.

example

intitle:"Rihanna - Don't Stop The Music" - Google Video
http://video.google.com/videosearch?num=100&hl=...

The first hit will probably be...
Rihanna - Don't Stop The Music
http://www.youtube.com/watch?v=xsRWpK4pf90&hl=en
It has 61,000,000+ hits.

The youtube link, the image for the video and the thumbnails all have have "xsRWpK4pf90" in them.

The image in the search results

A couple thumbnails.
 

===

A reuters video.

Bush v. hecklers | Video | Reuters.com
http://www.reuters.com/news/video?videoId=85881

Looking at the search results row in Firebug shows the link is in there.

<div srcurl="http://www.reuters.com/news/video?videoId=85881" contentid="" docid="8434303284452462706" duration="57" onclick="return resultItemClick('18');" class="rl-res" id="res-18">

MySpaceTV Videos: Barry Sanders and Reggie Bush by Nick
http://vids.myspace.com/index.cfm?fuseaction=vi...

Firebug stuff

<div srcurl="http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoID=1603121202" contentid="bd020ada4a936111" docid="-6389541570993699145" duration="300" onclick="return resultItemClick('17');" class="rl-res" id="res-17">

1 point
login to vote
Jordon Kalilich script's author
Posted Jul 1, 2008

That seems like it could work, but doing up to 10 XMLHttpRequests would be kind of complicated and would slow things down quite a bit.

1 point
login to vote
ekbworldwide scriptwright
Posted Jul 1, 2008

>> -- I'm not sure if that's possible --

Couldn't you...

1
Use XMLHttpRequest on the google video page

2
Grab the direct link.

3
On the search page replace the google video link with the direct link.

XMLHttpRequest is way beyond me. But is my logic sound? Or is it possible but just too darn slow?

1 point
login to vote
Jordon Kalilich script's author
Posted Jun 29, 2008

There's no frame on that page. The frame is only applied to videos that aren't hosted on video.google.com.

1 point
login to vote
ekbworldwide scriptwright
Posted Jun 29, 2008

Edit [Um... Whoops...]

You could comment on this script if you were logged in.