When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

Golovanov399's blog

By Golovanov399, 5 years ago, In English

Hello everyone.

A flashmt's comment (thank you) gave me an idea to modify a css on all code jam pages so that it doesn't suck that much. So what we need is:

How to use it:

  1. In stylish select somewhere "create new style",

  2. Press the "write new style" button,

  3. Copy this css contents to the code section,

  4. Tell this to apply to all urls starting with https://codingcompetitions.withgoogle.com,

  5. Click the save button.

What it does so far:

  • removes the problem graphs section,

  • removes the "show round overview" toggle,

  • reduces the height of all buttons,

  • makes the section with problems scrollable.

I didn't manage to find out how to make the width of problems columns less so that everyone could see when a round contains 4 problems, not 3. Feel free to comment how to do it if you know (or suggest some other modifications).

And some gifs related.

Before After

I hope that I didn't break something (like accidentally hide the questions button or something), but I'm not sure, so use it at your own risk. I've tested it only in firefox, but it should seem that this must work everywhere (like come on, it's just a css modification).

  • Vote: I like it
  • +106
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

According to Wikipedia, Stylish had some major privacy issues in 2017 and 2018. Do you know if this is any better now?

An alternate was of injecting css would be to use a bookmark containing javascript. This page can generate a bookmark that injects css for instance (you can double check the resulting bookmark to make sure that the generated javascript does not contain anything malicious). The downside of this is that you have to click on the bookmark every time you reload the page. (The upside is that you can have multiple bookmarks to hide/show the editor for instance.)

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    No, I did't know anything about stylish security issues. From what I read it seems to follow that just installing stylish already makes you transmit some info somewhere (I thought maybe it's dangerous only if you add untrusted styles), but it also said that this add-on was deleted from the firefox addons site, and since it's there again, I guess, it's safe to use now (I'm not sure ofc)

»
5 years ago, # |
Rev. 4   Vote: I like it +8 Vote: I do not like it

Some more css edits that might be useful:

Hide editor
Show editor again
Make editor smaller
Move editor to the bottom (may glitch)

I have very little understanding of css/html/js, so use these at your own risk. I figured these out by playing around with the css in firefox.

Edit: Added .competition-interface-page as suggested below.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    In my browser it gets overwritten, what works is

    .competition-interface-page .pane-interface__right {
        display: flex;
        flex: 1 1 25%;
    }
    
»
5 years ago, # |
  Vote: I like it +16 Vote: I do not like it

google should hire you!

»
5 years ago, # |
Rev. 2   Vote: I like it +15 Vote: I do not like it

They added a collapse now button to hide editor :)