// ==UserScript==
// @name Codeforces Tag Hiding
// @namespace http://t...content-available-to-author-only...y.net/
// @version 0.1
// @description Hides tags on Codeforces, except difficulty. Enable tags in settings first.
// @author Black.n.White
// @match https://c...content-available-to-author-only...s.com/contest/*/problem/*
// @match https://c...content-available-to-author-only...s.com/problemset/problem/*/*
// @grant none
// ==/UserScript==
( function( ) {
'use strict' ;
var tagList = document.getElementsByClassName ( "tag-box" ) ;
for ( var i = 0 ; i < tagList.length ; i++ ) {
if ( tagList[ i] .title ! = "Difficulty" ) {
tagList[ i] .parentElement .style .display = "none" ;
}
}
} ) ( ) ;
Ly8gPT1Vc2VyU2NyaXB0PT0KLy8gQG5hbWUgICAgICAgICBDb2RlZm9yY2VzIFRhZyBIaWRpbmcKLy8gQG5hbWVzcGFjZSAgICBodHRwOi8vdC4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ueS5uZXQvCi8vIEB2ZXJzaW9uICAgICAgMC4xCi8vIEBkZXNjcmlwdGlvbiAgSGlkZXMgdGFncyBvbiBDb2RlZm9yY2VzLCBleGNlcHQgZGlmZmljdWx0eS4gRW5hYmxlIHRhZ3MgaW4gc2V0dGluZ3MgZmlyc3QuCi8vIEBhdXRob3IgICAgICAgQmxhY2subi5XaGl0ZQovLyBAbWF0Y2ggICAgICAgIGh0dHBzOi8vYy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ucy5jb20vY29udGVzdC8qL3Byb2JsZW0vKgovLyBAbWF0Y2ggICAgICAgIGh0dHBzOi8vYy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ucy5jb20vcHJvYmxlbXNldC9wcm9ibGVtLyovKgovLyBAZ3JhbnQgICAgICAgIG5vbmUKLy8gPT0vVXNlclNjcmlwdD09CgooZnVuY3Rpb24oKSB7CiAgICAndXNlIHN0cmljdCc7CgogICAgdmFyIHRhZ0xpc3QgPSBkb2N1bWVudC5nZX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