Skip to content

Instantly share code, notes, and snippets.

@masquevil
Created August 20, 2014 10:14
Show Gist options
  • Save masquevil/6a45d91f1218e87a7940 to your computer and use it in GitHub Desktop.
Save masquevil/6a45d91f1218e87a7940 to your computer and use it in GitHub Desktop.
// ==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