Promoted pins remover

Remove promoted pins on Pinterest

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name			Promoted pins remover
// @name:fr			Supprime les épingles sponsorisées
// @name:es			Removedor de alfileres promocionado
// @name:it			Promosso pin remover
// @name:de			Promoted Pins Entferner
// @namespace		https://github.com/amlette/greasy
// @version			1.1
// @description		Remove promoted pins on Pinterest
// @description:fr	Supprime les épingles sponsorisées sur Pinterest
// @description:es	Eliminar pines promocionados en Pinterest
// @description:it	Rimuovi i pin promossi su Pinterest
// @description:de	Entfernen Sie gesponserte Pins auf Pinterest
// @author			amlette
// @require			https://code.jquery.com/jquery-3.5.1.min.js
// @include			https://*.pinterest.*/*
// ==/UserScript==
$(document).ready(function() {
	var titleByLanguage = {
		en: "Sponsored",
		fr: "Sponsorisé",
		es: "Patrocinados",
		it: "Sponsorizzato",
		de: "Gesponsert"
	};
	var lang = $("html").attr("lang");
	var sponsorKeyword 	= titleByLanguage[lang];

	setInterval(function() {
		var node = $("div[title='"+sponsorKeyword+"']");
		for (var i = node.length - 1; i >= 0; i--) {
			var parent = $(node[i]).closest("div[data-grid-item]");
			$(parent).hide();
		}
	}, 1000);
});