Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя Golovanov399

Автор Golovanov399, 6 лет назад, По-английски

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).

  • Проголосовать: нравится
  • +106
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.)

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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)

»
6 лет назад, # |
Rev. 4   Проголосовать: нравится +8 Проголосовать: не нравится

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.

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    In my browser it gets overwritten, what works is

    .competition-interface-page .pane-interface__right {
        display: flex;
        flex: 1 1 25%;
    }
    
»
6 лет назад, # |
  Проголосовать: нравится +16 Проголосовать: не нравится

google should hire you!

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится +15 Проголосовать: не нравится

They added a collapse now button to hide editor :)