Remove related pins

Make the new "Related Pins" disappear from your Pinterest feed.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Remove related pins
// @author      Mark Cervarich
// @namespace   http://markcerv.com
// @description Make the new "Related Pins" disappear from your Pinterest feed.
// @include     http://www.pinterest.com/*
// @match       http://www.pinterest.com/*
// @version     2013-11-18
// @copyright	2013+, Mark Cervarich
// @run-at      document-end
// @grant       none
// ==/UserScript==

// User editable variable
//
var repeat_every_x_seconds = 5;


// -- Please do not modify anything below here --
//
var total_removed = 0;

function hide_related_pins() {
    var num_related_found = $('.recommendationReasonWrapper').parent('.pinWrapper').length;
    $('.recommendationReasonWrapper').parent('.pinWrapper').remove();
    total_removed = num_related_found + total_removed;
    $('#KillRelated span').replaceWith("<span>related pins removed [<font color='red'>" + total_removed + "</font>]</span>");

}

function create_counter_div() {
    $('div.headerContainer div a#logo').after("<div id='KillRelated'><span>...</span></div>");
    $('#KillRelated').css({"left": "50%", "margin-left": "60px", "margin-top": "16px", "position": "absolute", "top": "-2px"});
}

// at load time
create_counter_div();
//hide_related_pins();

window.setInterval(function(){
  hide_related_pins();
}, (repeat_every_x_seconds * 1000));