Skip to content

Instantly share code, notes, and snippets.

@rafalwrzeszcz
Created February 10, 2026 20:42
Show Gist options
  • Select an option

  • Save rafalwrzeszcz/74d2e52699cbc9d6a278ce727acfe783 to your computer and use it in GitHub Desktop.

Select an option

Save rafalwrzeszcz/74d2e52699cbc9d6a278ce727acfe783 to your computer and use it in GitHub Desktop.
let style = document.getElementById("print_styles") || document.createElement("style");
style.id = "print_styles";
style.type = "text/css";
style.innerHTML = `
input[type="checkbox"],
.uctime,
#footer {
display: none !important;
}
input[type="text"] {
border: 0 !important;
}
`;
document.getElementsByTagName("head")[0].appendChild(style);
let division = document.querySelector(".col-4 input[type=\"text\"]:last-of-type");
while(division.nextSibling) {
division.parentNode.removeChild(division.nextSibling);
}
document.querySelector(".col-4 b:nth-of-type(3)").innerHTML = "Birthdate:";
document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(1)").value = "Rafał Wrzeszcz";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(1)").value = "Grzegorz Wrzeszcz";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(1)").value = "Miłosz Wrzeszcz";
document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(2)").value = "4281091";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(2)").value = "4281095";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(2)").value = "4281099";
document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(3)").value = "07.04.1988";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(3)").value = "30.01.2011";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(3)").value = "02.07.2015";
document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(4)").value = "Master";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(4)").value = "Senior";
//document.querySelector(".col-4 input[type=\"text\"]:nth-of-type(4)").value = "Junior";
print();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment