Advertisement
Guest User

Untitled

a guest
Feb 5th, 2019
1,248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://codeforces.com/*
  8. // @grant none
  9. // ==/UserScript==
  10. function addNewStyle(newStyle) {
  11. var styleElement = document.getElementById('styles_js');
  12. if (!styleElement) {
  13. styleElement = document.createElement('style');
  14. styleElement.type = 'text/css';
  15. styleElement.id = 'styles_js';
  16. document.getElementsByTagName('head')[0].appendChild(styleElement);
  17. }
  18. styleElement.appendChild(document.createTextNode(newStyle));
  19. }
  20.  
  21. addNewStyle('*{background-color:#36393f;color:white;}')
  22. addNewStyle('a{background-color:transparent !important;color:white !important;}')
  23. addNewStyle('body{background:#36393f;}')
  24. addNewStyle('.second-level-menu {background-color: transparent;}')
  25. addNewStyle('.user-admin {color:white !important;}')
  26. addNewStyle('.user-black {color:white !important;}')
  27. addNewStyle('.roundbox {border: 1px solid white;position: relative;background-color: transparent;}')
  28. addNewStyle('.roundbox .caption{color: #92ade6 !important;}')
  29. addNewStyle('.contest-state-phase{color: #92ade6 !important;}')
  30. addNewStyle('.topic .title *{color: #92ade6 !important;}')
  31. addNewStyle('.backLava {border-radius: 25px !important;background: #73AD21 !important;padding: 20px;width: 200px;}')
  32. addNewStyle('.leftLava {background-color:transparent !important; background: none !important;}')
  33. addNewStyle('.roundbox .dark { background-color: transparent !important;}')
  34. addNewStyle('.roundbox .bottom-links{background-color:transparent !important;}')
  35. addNewStyle('.datatable .dark {background-color: transparent;}');
  36. addNewStyle('img {background-color: transparent;}');
  37. addNewStyle('span {background-color: transparent;}');
  38. addNewStyle('.highlighted-row td, .highlighted-row th{background-color:transparent !important}')
  39. addNewStyle('.problems td.act .act-item {background-color: transparent;}');
  40. addNewStyle('.problems .rejected-problem td.act {background-color: #ec6a36 !important;}')
  41. addNewStyle('.problems .accepted-problem td.act {background-color:#539a53 !important; }')
  42. addNewStyle('.problems .rejected-problem td.id {border-left: 6px solid #ec6a36 !important;}')
  43. addNewStyle('.problems .accepted-problem td.id {border-left: 6px solid #539a53 !important;}')
  44. addNewStyle('.roundbox {background-color:transparent !important;}')
  45. addNewStyle('.verdict-rejected {color: #A00;font-weight: bold;}')
  46. addNewStyle('.comment-table {border-style:solid}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement