您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
View the full image with the click of a button (or D key press).
当前为
// ==UserScript== // @name Instagram Image Viewer // @namespace https://github.com/kittenparry/ // @version 0.1 // @description View the full image with the click of a button (or D key press). // @author kittenparry // @match https://www.instagram.com/p/* // @grant none // @license MIT License // ==/UserScript== window.addEventListener('keydown', (e) => { var type = e.target.getAttribute('type'); var tag = e.target.tagName.toLowerCase(); if (type != 'text' && tag != 'textarea') { if (e.keyCode == 68) { window.location = document.querySelector('meta[property="og:image"]').getAttribute('content'); } } }, false); document.body.innerHTML += '<a href="' + document.querySelector("meta[property='og:image']").getAttribute('content') + '" style="color: #7f8a94;"><div style="position: fixed; bottom: 50%; right: 0px; border-radius: 15px 0px 0px 15px; background: #faf0e6; padding: 13px; border: 2px solid #7f8a94; border-right-style: none;"><i style="border: solid black; border-width: 0 3px 3px 0; display: inline-block; padding: 3px; transform: rotate(45deg); -webkit-transform: rotate(45deg);"></i></div></a>';