-
Notifications
You must be signed in to change notification settings - Fork 34
/
HideReputation.user.js
60 lines (52 loc) · 1.64 KB
/
HideReputation.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
// ==UserScript==
// @name Hide Reputation
// @description Hide all user reputation on the site
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author Samuel Liew
// @version 3.0.13
//
// @match https://*.stackoverflow.com/*
// @match https://*.serverfault.com/*
// @match https://*.superuser.com/*
// @match https://*.askubuntu.com/*
// @match https://*.mathoverflow.net/*
// @match https://*.stackapps.com/*
// @match https://*.stackexchange.com/*
// @match https://stackoverflowteams.com/*
//
// @exclude https://api.stackexchange.com/*
// @exclude https://data.stackexchange.com/*
// @exclude https://contests.stackoverflow.com/*
// @exclude https://winterbash*.stackexchange.com/*
// @exclude *chat.*
// @exclude *blog.*
// @exclude */tour
//
// @require https://raw.githubusercontent.com/samliew/SO-mod-userscripts/master/lib/se-ajax-common.js
// @require https://raw.githubusercontent.com/samliew/SO-mod-userscripts/master/lib/common.js
//
// @run-at document-end
// ==/UserScript==
/* globals StackExchange */
/// <reference types="./globals" />
'use strict';
function removeRepTooltips() {
// Remove anything with rep in title tooltips
$('[title]').attr('title', function (i, v) {
return v.includes('rep') ? '' : v;
});
}
// Append styles
addStylesheet(`
.user-info .-flair {
display: none !important;
}
`); // end stylesheet
// On script run
(function init() {
removeRepTooltips();
// On any page update
$(document).ajaxStop(function (event, xhr, settings) {
removeRepTooltips();
});
})();