您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ignored_classifieds cookie'sine göre ilanları gizler
// ==UserScript== // @name Sahibinden Ilan Gizleyici // @namespace http://tampermonkey.net/ // @version 1.1 // @description ignored_classifieds cookie'sine göre ilanları gizler // @author gecmisi.com.tr // @match https://*.sahibinden.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function getCookie(name) { let value = "; " + document.cookie; let parts = value.split("; " + name + "="); if (parts.length === 2) return parts.pop().split(";").shift(); } const ignoredClassifiedsCookie = getCookie("ignored_classifieds"); if (ignoredClassifiedsCookie) { const ignoredClassifieds = decodeURIComponent(ignoredClassifiedsCookie) .replace(/[\[\]]/g, '') .split(',') .map(code => code.trim()); ignoredClassifieds.forEach(id => { const item = document.querySelector(`tr[data-id="${id}"]`); if (item) { item.style.display = 'none'; // İlanı gizle } }); } })();