tril0713's blog

By tril0713, history, 12 months ago, In English

Is there any extension which can change the submissions status such as changing Wrong answer on test X to Wonderful answer on test X? If it exists where can I find it?

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

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

This extension could replace all Wrong answer to Wonderful answer in codeforces.

You need to use tampermonkey to run it.

// ==UserScript==
// @name         ReplaceWords
// @namespace    none
// @version      1
// @description  Replace "wrong" with "Wonderful" in codeforces
// @match        *://*.codeforces.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function replaceText(node) {
        if (node.nodeType === Node.TEXT_NODE) {
            node.nodeValue = node.nodeValue.replace(/wrong/gi, 'Wonderful');
        } else if (node.nodeType === Node.ELEMENT_NODE) {
            for (let i = 0; i < node.childNodes.length; i++) {
                replaceText(node.childNodes[i]);
            }
        }
    }

    replaceText(document.body);
})();

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

it's still wrong answer. Don't pose