Disable all the annoying crap from the MIUI forums
目前為
// ==UserScript==
// @name Making MIUI forums usable
// @namespace none
// @version 1.0
// @description Disable all the annoying crap from the MIUI forums
// @author Glow8
// @match https://en.miui.com/*
// @match en.miui.com/*
// @match in.miui.com/*
// @match https://ru.miui.com/*
// @match ru.miui.com/*
// @match https://www.miui.com/*
// @match www.miui.com/*
// @grant none
// ==/UserScript==
// This script was based on https://greasyfork.org/en/scripts/23378-miui-medal-block/code by the user Diathedia.
// Created on 30/12/18 so not everything could be up to date.
(function() {
'use strict';
var experience = document.getElementsByClassName("cm");
var medals = document.getElementsByClassName("md_ctrl");
var sign = document.getElementsByClassName("sign");
var userdata = document.getElementsByClassName("pil cl");
while(experience.length > 0){
experience[0].parentNode.removeChild(experience[0]);
}
while(medals.length > 0){
medals[0].parentNode.removeChild(medals[0]);
}
while(sign.length > 0){
sign[0].parentNode.removeChild(sign[0]);
}
while(userdata.length > 0){
userdata[0].parentNode.removeChild(userdata[0]);
}
})();