您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tumblrのダッシュボードに挿入されるおすすめを消す
// ==UserScript== // @name Tumblr Remove Recommended // @namespace https://greasyfork.org/ja/users/19495-kakkou // @version 0.1 // @description Tumblrのダッシュボードに挿入されるおすすめを消す // @author kakkou // @match https://www.tumblr.com/dashboard // @grant none // ==/UserScript== function deleteNode(node) { if ( node.nodeName == "LI" && node.getAttribute("class") == "post_container" ) { var div = node.childNodes[0]; //div if ( div.getAttribute("data-is_recommended") ) { node.parentNode.removeChild(node); return 1; } } return 0; } // 最初から読まれてる奴を消す var elements = document.getElementsByClassName("post_container"); var index = 0; while(index < elements.length) { if ( deleteNode(elements[index]) == 0 ) { ++index; } } // 動的にロードされる奴を消す document.addEventListener("DOMNodeInserted", function(e){ deleteNode(e.target); });