Created
August 20, 2014 10:14
-
-
Save masquevil/6a45d91f1218e87a7940 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 RenRen Beautifier | For V7 | |
// @namespace http://www.soulran.com/ | |
// @version 0.11 | |
// @description Remove ad and something I dislike. | |
// @match http://*.renren.com/* | |
// @run-at document-end | |
// @copyright 2013+, Masquevil | |
// ==/UserScript== | |
var removeAdApp = function(){ | |
var rrSlidebar = document.getElementById("nxSlidebar"); | |
var rrAdAppList = rrSlidebar.getElementsByTagName("div"); | |
for (var num in rrAdAppList){ | |
if((/recent/).test(rrAdAppList[num].className)){ | |
rrAdAppList[num].parentNode.removeChild(rrAdAppList[num]); | |
} | |
} | |
} | |
removeAdApp(); | |
//Just 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment