File:Install-dialog.png: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m Reverted edits by Maddasahatter (talk) to last revision by Arantius
val
Line 1: Line 1:
 
// ==UserScript==
// @name          YouTube Ban from Frontpage
// @namespace      #aVg
// @description    Bans shit from YouTube's frontpage
// @include        http://*youtube.tld/
// ==/UserScript==
const bannedUsers = ["ShaneDawsonTV2", "BlackChameleon", "sxephil", "Fred", "WHATTHEBUCKSHOW", "ShaneDawsonTV", "PhilipDeFranco"];
function loop(A, B) {
A = document.evaluate(A, document, null, 6, null);
var i = A.snapshotLength;
while(--i >= 0) B(A.snapshotItem(i), i);
}
function remove(A) {A.parentNode.removeChild(A);}
loop("//a[starts-with(@href, '/user/')]", function(user) {
if(bannedUsers.indexOf(user.pathname.substring(6)) != -1)
remove(user.parentNode.parentNode.parentNode.parentNode);
});

Revision as of 09:48, 1 November 2011

// ==UserScript== // @name YouTube Ban from Frontpage // @namespace #aVg // @description Bans shit from YouTube's frontpage // @include http://*youtube.tld/ // ==/UserScript== const bannedUsers = ["ShaneDawsonTV2", "BlackChameleon", "sxephil", "Fred", "WHATTHEBUCKSHOW", "ShaneDawsonTV", "PhilipDeFranco"]; function loop(A, B) { A = document.evaluate(A, document, null, 6, null); var i = A.snapshotLength; while(--i >= 0) B(A.snapshotItem(i), i); } function remove(A) {A.parentNode.removeChild(A);} loop("//a[starts-with(@href, '/user/')]", function(user) { if(bannedUsers.indexOf(user.pathname.substring(6)) != -1) remove(user.parentNode.parentNode.parentNode.parentNode); });

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current19:17, 3 November 2017Thumbnail for version as of 19:17, 3 November 2017461 × 448 (23 KB)Arantius (talk | contribs)GM 4.0 style.
00:51, 23 April 2007Thumbnail for version as of 00:51, 23 April 2007361 × 386 (8 KB)Arantius (talk | contribs)

The following page uses this file: