Skip to content

Instantly share code, notes, and snippets.

@timonwong
Forked from lyricat/novice_killer.user.js
Last active October 13, 2015 09:37
Show Gist options
  • Save timonwong/4175517 to your computer and use it in GitHub Desktop.
Save timonwong/4175517 to your computer and use it in GitHub Desktop.
干掉V2EX上所有使用默认头像用户的发言。
// ==UserScript==
// @name v2ex novice killer
// @namespace http://shellex.info
// @author shellex([email protected])
// @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() {
/*jshint strict:false, expr:true*/
/*global unsafeWindow:true*/
window.unsafeWindow || (
unsafeWindow = (function() {
var el = document.createElement('p');
el.setAttribute('onclick', 'return window;');
return el.onclick();
}())
);
/*jshint expr:false*/
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();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment