-
-
Save Richienb/92ed3443519f782cbc73143b190b238b to your computer and use it in GitHub Desktop.
img[src*="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"] {display: none;} |
anweshandev
commented
Nov 8, 2022
via email
You just need to remove
</head>
</body>
From the last lines 😂😂😂 Then they cannot detect where to put the water mark
BEST
You just need to remove
</head>
</body>
From the last lines 😂😂😂 Then they cannot detect where to put the water markBEST
What? That's invalid formatting..
Just add in your javascript:
function onLoad() {
document.getElementsByTagName("div")[document.getElementsByTagName("div").length -1].innerHTML = ""
}
and then in your HTML change <body>
to <body onload="javascript:onLoad()">
you can also do this is you want something on an error page, used this for my 403 forbidden page but i dont reccomend it, this is the "Cheap" method, i did this before i found this post so i mainly will just use the top post...
CSS
div { visibility:hidden; }
not sure if anyone posted this...
Below code is the perfect code to remove the exact image as well as script.
JavaScript Code:
var img = document.querySelector('div a img[src="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"]');
var nextScript = img.parentNode.parentNode.nextElementSibling;
if(nextScript) {
nextScript.remove();
console.clear();
}
img.remove();
<style> img[src*="https://www.000webhost.com/static/default.000webhost.com/images/powered-by-000webhost.png"] { display: none;} </style>
update 2024
Guy's Try It
Hi this work for me
document.body.outerHTML = document.body.outerHTML.replace("</body>", "<!-- </body> -->");
work....
window.addEventListener('load', function () {
console.log('👿');
// select div of banner if changed inspect page and find `<div>` of banner
var _banner = document.querySelector("div[style='text-align: right;position: fixed;z-index:9999999;bottom: 0;width: auto;right: 1%;cursor: pointer;line-height: 0;display:block !important;']");
_banner.style.display = "none";
});
code worked
thankew