File:Install-dialog.png: Difference between revisions
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:17, 3 November 2017 | 461 × 448 (23 KB) | Arantius (talk | contribs) | GM 4.0 style. | |
00:51, 23 April 2007 | 361 × 386 (8 KB) | Arantius (talk | contribs) |
You cannot overwrite this file.
File usage
The following page uses this file: