您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Script that opens your liked instagram reels in new tab insted of existing one.
// ==UserScript== // @name Instagram Reel in New Tab (Workaround) // @namespace http://tampermonkey.net/ // @version 2.3 // @description Script that opens your liked instagram reels in new tab insted of existing one. // @author gimpostin,ygrek // @match https://www.instagram.com/your_activity/interactions/likes/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.addEventListener('click', function(e) { const img = e.target.closest('img[data-bloks-name="bk.components.Image"]'); if (img) { e.stopPropagation(); e.preventDefault(); const currentUrl = window.location.href; img.parentElement.click(); setTimeout(() => { if (window.location.href !== currentUrl) { const postUrl = window.location.href; window.open(postUrl, '_blank'); window.history.back(); } }, 500); } }, true); })();