您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Prevent double-tap to like on Instagram images
// ==UserScript== // @name Disable Double Tap to Like on Instagram // @namespace http://tampermonkey.net/ // @version 2024-06-07 // @description Prevent double-tap to like on Instagram images // @author Priesdelly // @match *://*.instagram.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to prevent double-tap to like function preventDoubleTapToLike(event) { console.log('got double click'); if (event.target.tagName.toLowerCase() === 'img') { event.stopPropagation(); event.preventDefault(); } } // Add event listener to capture double-click events document.addEventListener('dblclick', preventDoubleTapToLike, true); })();