Skip to content

Instantly share code, notes, and snippets.

@Olfredos6
Olfredos6 / dockerhub.clear-repo.js
Created November 1, 2025 13:24
Automate deleting images from https://hub.docker.com repositories through the Image Management interface. This may break should they update their UI
function processModal(){
modalCloseWait = null
modalWaitInt = setInterval(function(){
const modal = document.querySelector("[class='MuiPaper-root MuiPaper-outlined MuiPaper-rounded MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthLg MuiDialog-paperFullWidth css-pwtm6o']")
if(modal && !modal.querySelector("[class='MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-14rdbf1']")){
clearTimeout(modalWaitInt)
document.querySelector("[placeholder='Type delete']").value = "delet"
document.querySelector("[placeholder='Type delete']").scrollIntoView()
setTimeout(function(){
// Just wait for me to add that `e`
@Olfredos6
Olfredos6 / index.js
Last active September 14, 2024 09:22
GitHub Gist simple layout remover for downloading Gists as PDF
(() => {
document.querySelectorAll(".file-header").forEach(e => e.remove())
document.querySelector(".file").style.border = "unset"
document.querySelector(".gisthead.pagehead.pb-0.pt-3.mb-4").remove();
document.querySelector("[role='banner']").remove();
document.querySelector(".discussion-timeline-actions").remove();
document.querySelector("[itemprop='about']").remove();
document.querySelector("footer").remove()
})();