Skip to content

Instantly share code, notes, and snippets.

@GaurangTandon
Created August 18, 2021 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaurangTandon/1002be83974e3702605d9334668670d6 to your computer and use it in GitHub Desktop.
Save GaurangTandon/1002be83974e3702605d9334668670d6 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Amp Fixer
// @match https://codedrills.io/contests/icpc-gwalior-pune-2020-regional-round/scoreboard
// ==/UserScript==
function fixer() {
const elms = document.querySelectorAll(".v-data-table__wrapper > table:nth-child(1) > tbody:nth-child(3) > tr > td:nth-child(3)");
for (const elm of [...elms]) {
const s = elm.innerText;
const sT = s.replace(/&?\bamp\b;?/g, "");
elm.innerText = sT;
}
setTimeout(fixer, 2000);
}
fixer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment