block-silly-B

block someone I don't like

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.

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

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

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

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

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

// ==UserScript==
// @name         block-silly-B
// @namespace    bakaCirno
// @version      0.1
// @description  block someone I don't like
// @author       cirno
// @match        http://stackoverflow.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var users = document.querySelectorAll("div.user-info.user-hover");
    users.forEach(function(node){
        var links = node.querySelectorAll('a');
        links.forEach(function(node){
            if(node.href.match(/\/users\/895245/g)){
                if(node.text !== ''){
                    node.text = 'Ciro Santilli';
                }else{
                    node.firstChild.firstChild.src = 'data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSgBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/AABEIACAAIAMBEQACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrC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cyxGX4VZa2moq9pcv2Vbqrmr8Lnt774x6heeE7eWDw95b+YApVMFeOO2X5A9K1wlpYpypL3Ti4hU6OR06WYSTrXVur37+mjZ7bqOgaPqcol1LSdPu5B/HcWySH8yDXrSpQnrKKfyPzyhmGKw65aNWUV5Sa/Jly0tbezgWG0gighXpHEgVR9AKuMVFWSMKlWdWXPUk2+7dzKm8JeHJpXlm8P6RJK7Fnd7KMlieSSdvJrJ4ek3dxX3I7I5vj4RUY15pL+9L/M07GytbC3EFhbQW0C9I4Ywij8BxWkYqKtFWOStXqV5c9WTk+7d3+J//9k=';
                }
            }
        });
    });

    var comments = document.querySelectorAll('a.comment-user');
    comments.forEach(function(node){
        if(node.href.match(/\/users\/895245/g)){
            node.text = 'Ciro Santilli';
        }
    });

})();