Skip to content

Instantly share code, notes, and snippets.

@lyricat
Created November 30, 2012 08:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lyricat/4174530 to your computer and use it in GitHub Desktop.
Save lyricat/4174530 to your computer and use it in GitHub Desktop.
干掉V2EX上所有使用默认头像用户的发言。
// ==UserScript==
// @name v2ex novice killer
// @namespace http://shellex.info
// @author shellex(5h3ll3x@gmail.com)
// @description 干掉使用默认头像的人的发言
// @include http://www.v2ex.com/go/*
// @include http://v2ex.com/go/*
// @include http://www.v2ex.com/?tab=*
// @include http://v2ex.com/?tab=*
// @include http://www.v2ex.com/
// @include http://v2ex.com/
// @version 0.2
// @grant none
// ==/UserScript==\
(function() {
window.unsafeWindow || (
unsafeWindow = (function() {
var el = document.createElement('p');
el.setAttribute('onclick', 'return window;');
return el.onclick();
}())
);
var $ = unsafeWindow.jQuery;
var entry = function() {
var dA =$('#Main img[src$="v2ex.com/static/img/avatar_large.png"],#Main img[src$="v2ex.com/static/img/avatar_normal.png"]');
return dA.parents('.cell').remove();
};
entry();
}).call(this);
@aquarhead
Copy link

噗....

@meteormatt
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment