您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple userscript to open instagram images in another tab.
// ==UserScript== // @name Simple instagram Images // @namespace http://tampermonkey.net/ // @version 2024-10-18 // @description Simple userscript to open instagram images in another tab. // @author pe-dro // @match *://*.instagram.com/* // @source https://github.com/pe-dro/simple-instagram-images/ // @supportURL https://github.com/pe-dro/simple-instagram-images/ // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license // ==/UserScript== (function() { 'use strict'; function removeElements() { const elements = document.querySelectorAll('._aagw'); elements.forEach(el => el.remove()); } function makeImagesClickable() { const divs = document.querySelectorAll('._aagv'); divs.forEach(div => { const imgs = div.querySelectorAll('img'); imgs.forEach(img => { const link = img.src; img.style.cursor = 'pointer'; img.addEventListener('click', () => { window.open(link, '_blank'); }); }); }); } setInterval(() => { removeElements(); makeImagesClickable(); }, 1000); })();