Greasy Fork is available in English.

Disable Double Tap to Like on Instagram

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);
})();