您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
View the fullsize Instagram image or video. Usage: hold Shift key & click on the preview photo. NEW: hold down alt+f on detail pages (no clicking needed).
当前为
// ==UserScript== // @name Instagram Full Size Reloaded // @namespace http://despecial.de // @homepage https://greasyfork.org/en/scripts/14755-instagram-full-size-reloaded // @version 1.7 // @description View the fullsize Instagram image or video. Usage: hold Shift key & click on the preview photo. NEW: hold down alt+f on detail pages (no clicking needed). // @author despecial // @match *://*.instagram.com/* // @grant none // ==/UserScript== var ig = 'a[data-reactid^=".0.1.0.1"], div[data-reactid^=".0.1.0.0.0"]:eq(1), div[data-reactid^=".0.1.0.1.0."]:not(.ResponsiveBlock):nth-of-type(1), div[data-reactid^=".1.1.0.0.1."]:not(.ResponsiveBlock) div'; var map = []; /* click preview photo/video */ $(document).on('click',ig,function(e,a){ if(e.shiftKey || a == "rm") { console.log(this); var fs = $(this).find('img').attr('src'), v = $(this).find('video').attr('src'), rplcd = new Array('\/sh0.08','(\/[s|p][\\d]+x[\\d]+)','\/c[\\d]+\\.[\\d]+.[^\\/]*','[?+].+','[?+].+'); for (var i = 0; i < rplcd.length; ++i) { var r = new RegExp(rplcd[i],'i'); if( r.test(fs) ) fs=fs.replace(r,''); } if(v) { e.preventDefault(); window.open(v, '_blank'); } if(fs) window.open(fs, '_blank'); } }); /* keyboard shortcut alt+f(ullsize) */ onkeydown = onkeyup = function(e){ e = e || event; map[e.keyCode] = e.type == 'keydown'; if(map[18] && map[70]) $('div[data-reactid^=".0.1.0.0.0"]:eq(1)').trigger('click',['rm']); }