Skip to content

Instantly share code, notes, and snippets.

@zztczcx
Forked from lyricat/novice_killer.user.js
Created November 30, 2012 11:28
Show Gist options
  • Save zztczcx/4175239 to your computer and use it in GitHub Desktop.
Save zztczcx/4175239 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.1
// @grant none
// ==/UserScript==\
(function() {
var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})};
loadAndExecute('http://v2ex.com/static/js/jquery.js', function () {
var entry;
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment