Hide 'liked by friends' items with comment box.
当前为
// ==UserScript==
// @name 微博嘿嘿
// @namespace http://tampermonkey.net/
// @version 0.3.2
// @description Hide 'liked by friends' items with comment box.
// @author Mikkkee
// @include http://weibo.com/*
// @include http://www.weibo.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 删除被赞微博元素
var a = document.querySelectorAll('i.ficon_praised');
for (var i = 0; i < a.length; ++i) {
var toRemove = a[i].parentElement.parentElement.parentElement.parentElement;
toRemove.parentElement.removeChild(toRemove);
// a[i].parentElement.parentElement.parentElement.style.display = 'none';
}
// 隐藏图片推荐
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = "div[node-type='imgSpanBox'] > div.W_layer_pop { display: none; }";
document.body.appendChild(css);
})();