Discussions » Development

New FB Script to Block Annoying Tag Suggestions Pop-Up Window

§
Posted: 2024-07-24

This script will automatically disable the annoying Tag Suggestions pop-up window whenever you're posting or commenting on a facebook post, which drives me bananas whenever I try to type something and get that stupid pop-up with every word I type. Feel free to contact me if you run into any issues.

// ==UserScript==
// @name        Block Facebook Tag Suggestions
// @namespace   http://tampermonkey.net/
// @match       https://*.facebook.com/*
// @grant       Public Domain
// @version     1.0
// @author      DigiGod via Greasy Fork
// @description Blocks annoying Facebook tag suggestion pop-ups
// ==/UserScript==

(function() {
    'use strict';

    // Replace with the appropriate CSS selector for the tag suggestion pop-up
    const tagSuggestionSelector = '.tag-suggestion-popup';

    // Function to remove the tag suggestion element
    function removeTagSuggestion() {
        const tagSuggestion = document.querySelector(tagSuggestionSelector);
        if (tagSuggestion) {
            tagSuggestion.remove();
        }
    }

    // Check for the tag suggestion element every second
    setInterval(removeTagSuggestion, 1000);
})();

Not sure if this will work but try it, it should stop the popup from appearing at all

// ==UserScript==
// @name           Block Facebook Tag Suggestions
// @namespace      https://github.com/AbdurazaaqMohammed
// @version        1.0
// @author         Abdurazaaq Mohammed
// @description    Block annoying Facebook tag suggestion popups
// @match          https://*.facebook.com/*
// @homepage       https://github.com/AbdurazaaqMohammed/userscripts
// @license        The Unlicense
// @supportURL     https://github.com/AbdurazaaqMohammed/userscripts/issues
// @run-at         document-start
// @grant          none
// ==/UserScript==
(function() {
    'use strict';
    document.head.appendChild(document.createElement('style')).innerHTML = '.tag-suggestion-popup {display: none !important;}';
})();

Post reply

Sign in to post a reply.