Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
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])
|
|
|
hey man thanks so much! it's funny... my browser still loads the whole page, then goes and deletes it! haha, lolz... great job! |