您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows to browse Pinterest without login/registration, removing the offending modal popup
// ==UserScript== // @name Pinterest with no registration modal popup // @namespace jesusmg // @version 2.5 // @description Allows to browse Pinterest without login/registration, removing the offending modal popup // @include http://*.pinterest.com/* // @include https://*.pinterest.com/* // @include https://*.pinterest.*/* // @author Jesús González // @require http://code.jquery.com/jquery-latest.min.js // @require https://greasyfork.org/scripts/6250-waitforkeyelements/code/waitForKeyElements.js?version=23756 // ==/UserScript== $(document).ready(function() { setInterval(function() { if ($("div[data-reactcontainer='']").is(':empty')) { console.log("Page is empty, reloading"); location.reload(); } }, 1000); waitForKeyElements ( //"iframe[title='fb:login_button Facebook Social Plugin']", hideElement "iframe", removeElement ); waitForKeyElements ( "div[data-test-id='signup']", removeElement ); waitForKeyElements ( "div[data-test-id='fullPageSignupModal']", removeElement ); waitForKeyElements ( "div[data-test-id='giftWrap']", removeElement ); /* waitForKeyElements ( ".FullPageModal__scroller", removeParent ); */ }); function hideElement(jNode) { console.log("Hiding offending registration crap"); console.log(jNode); jNode.css('visibility', 'hidden'); } function removeElement(jNode) { console.log("Removing offending registration crap"); console.log(jNode); jNode.remove(); } function removeParent(jNode) { removeElement(jNode.parent()); } function removeElementDelayed(jNode) { setTimeout(removeElement(jNode), 3000); }