Promoted pins remover

Remove promoted pins on Pinterest

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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);
});