Google Video Cleaner

By Joel H Last update Apr 15, 2007 — Installed 620 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Avindra V.G. Scriptwright

you should make it delete the div instead:

// ==UserScript==
// @name           Google Video Cleaner
// @namespace      http://userscripts.org/users/24068
// @description    Formats Google Video to look more like the rest of Google
// @include        http://video.google.com/?*
// @include        http://video.google.com/
// @include        http://video.google.com
// ==/UserScript==

//get all divs
const divs = document.getElementsByTagName('div');

//delete all but the first five
for(var i=4;i<divs.length;i++) divs[i].parentNode.removeChild(divs[i])

 
prog_head User

hey man thanks so much!

it's funny... my browser still loads the whole page, then goes and deletes it! haha, lolz...

great job!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel