Created
November 30, 2012 08:32
-
-
Save lyricat/4174530 to your computer and use it in GitHub Desktop.
干掉V2EX上所有使用默认头像用户的发言。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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.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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
噗....