fork download
  1. // ==UserScript==
  2. // @name Codeforces Tag Hiding
  3. // @namespace http://t...content-available-to-author-only...y.net/
  4. // @version 0.1
  5. // @description Hides tags on Codeforces, except difficulty. Enable tags in settings first.
  6. // @author Black.n.White
  7. // @match https://c...content-available-to-author-only...s.com/contest/*/problem/*
  8. // @match https://c...content-available-to-author-only...s.com/problemset/problem/*/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var tagList = document.getElementsByClassName("tag-box");
  16. for(var i = 0; i < tagList.length; i++){
  17. if(tagList[i].title != "Difficulty"){
  18. tagList[i].parentElement.style.display = "none";
  19. }
  20. }
  21. })();
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:13:5: warning: character constant too long for its type
     'use strict';
     ^~~~~~~~~~~~
prog.cpp:12:12: error: expected ‘)’ before ‘{’ token
 (function() {
 ~          ^~
            )
prog.cpp:21:2: error: expected unqualified-id before ‘)’ token
 })();
  ^
stdout
Standard output is empty