-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstackoverbloat.user.js
66 lines (53 loc) · 2.14 KB
/
stackoverbloat.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ==UserScript==
// @name stackoverbloat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description distraction free stack exchange Q/A
// @author Florian Kneist
// @match https://stackoverflow.com/questions/*
// @match https://askubuntu.com/questions/*
// @match https://superuser.com/questions/*
// @match https://unix.stackexchange.com/questions/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var avatars = document.getElementsByClassName('gravatar-wrapper-32')
for(var i = 0; i < avatars.length; i++){
console.log(avatars[i])
avatars[i].innerHTML = "";
avatars[i].style.backgroundColor = "#eff0f1"
}
if(document.querySelector('#question-header > div > a')){
document.querySelector('#question-header > div > a').style.visibility = 'hidden';
}
if (document.getElementsByTagName('header')) {
document.getElementsByTagName('header')[0].style.visibility = 'hidden';
}
if (document.getElementById('left-sidebar')) {
document.getElementById('left-sidebar').style.visibility = 'hidden';
}
if (document.getElementById('sidebar')) {
document.getElementById('sidebar').style.visibility = 'hidden';
}
if (document.getElementsByClassName('hero-container').length > 0) {
document.getElementsByClassName('hero-container')[0].style.height = '0px';
}
// askubuntu begin
if(document.getElementsByClassName('s-hero').length > 0) {
document.getElementsByClassName('s-hero')[0].style.height = '0px';
}
if (document.getElementById('custom-header')) {
document.getElementById('custom-header').style.visibility = 'hidden';
}
if (document.getElementById('header')) {
var header = document.getElementById('header')
header.parentNode.removeChild(header)
}
document.getElementById('content').style.fontFamily = 'Arial, Helvetica Neue, Helvetica, sans-serif'
document.body.style.background = "white";
// askubuntu end
// unix.stackexchange begin
document.body.style.backgroundImage = "url('')";
// unix.stackexchange end
})();