Shielding someone's implementation code in flash memory in cnblogs

Source: Internet
Author: User

Copy codeThe Code is as follows:
Var unlikes = ['zhang523012313 ', 'yangtonggnet'];
Function delUnlike (filter, expr ){
$ (Filter). filter (function (){
Var href = $ (this). find (expr). attr ('href ');
For (var I = 0; I <unlikes. length; I ++ ){
If (href. indexOf (unlikes [I])> 0) return true;
}
Return false;
}). Remove ();
}

Function clearUnlike (n ){
SetTimeout (function (){
DelUnlike ('. avatar_list li', 'A'); // Avatar
DelUnlike ('# feed_list li: visible', 'A'); // flash list
DelUnlike ('. ing_comments li: visible', 'a: last'); // comment
DelUnlike ('. ing_top_list li', 'A'); // popular flash memory
DelUnlike ('# ing_comment_recent_block div', 'A'); // The latest response.
}, N );
}
Var getComments = GetRecentComments;
Function GetRecentComments (){
GetComments ();
Clearunlike( 1000 );
Clearunlike( 3000 );
}

Run it on the browser's JavaScript Console (such as Firefox's firebug), refresh, and the world is finally clean.

To add a blacklist, you only need to execute unlikes. push ('someone id') in the console.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.