您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allow "Save image as..." on context menu of Instagram.
当前为
// ==UserScript== // @name instagram_allow_saveimage // @namespace http://catherine.v0cyc1pp.com/instagram_allow_saveimage.user.js // @include https://www.instagram.com/* // @version 1.3 // @require http://code.jquery.com/jquery-2.2.2.min.js // @grant none // @run-at document-end // @description Allow "Save image as..." on context menu of Instagram. // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); console.log("instagram_allow_saveimage start"); function main() { //$("article > div[data-reactid] > div[data-reactid]:nth-child(2)").attr("display","none"); $("article").children("div:not([class='ResponsiveBlock'])").children("div[data-reactid]").children("div[data-reactid]:nth-last-child(1)").hide(); $("article").children("div:not([class='ResponsiveBlock'])").children("div[data-reactid]").children("div[data-reactid]").children("div[data-reactid]:nth-last-child(1)").hide(); }; var observer = new MutationObserver(function(mutations) { observer.disconnect(); main(); observer.observe( document, config); }); var config = { attributes: false, childList: true, characterData: false, subtree:true } observer.observe( document, config);