Skip to content

Instantly share code, notes, and snippets.

@Richienb
Last active February 3, 2026 14:50
Show Gist options
  • Select an option

  • Save Richienb/92ed3443519f782cbc73143b190b238b to your computer and use it in GitHub Desktop.

Select an option

Save Richienb/92ed3443519f782cbc73143b190b238b to your computer and use it in GitHub Desktop.
Remove 000Webhost Branding For Wordpress CSS Code
img[src*="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"] {display: none;}
@aksh120

aksh120 commented Nov 16, 2022

Copy link
Copy Markdown

You just need to remove </head> </body> From the last lines 😂😂😂 Then they cannot detect where to put the water mark

BEST

ghost commented Nov 16, 2022

Copy link
Copy Markdown

You just need to remove </head> </body> From the last lines 😂😂😂 Then they cannot detect where to put the water mark

BEST

What? That's invalid formatting..

@adwidu

adwidu commented Mar 18, 2023

Copy link
Copy Markdown

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()">

@val74k

val74k commented Jun 28, 2023

Copy link
Copy Markdown

@DeadBoxxes

DeadBoxxes commented Sep 20, 2023

Copy link
Copy Markdown

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...

@sinehan001

sinehan001 commented Dec 8, 2023

Copy link
Copy Markdown

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();

@H281994

H281994 commented Mar 3, 2024

Copy link
Copy Markdown

<style> img[src*="https://www.000webhost.com/static/default.000webhost.com/images/powered-by-000webhost.png"] { display: none;} </style>

update 2024

@LxaNce-Hacker

Copy link
Copy Markdown
<script>document.querySelectorAll('a[href*="000webhost"]').forEach(e => e.remove());</script>

Guy's Try It

@fripokoff

fripokoff commented Apr 13, 2024

Copy link
Copy Markdown

Hi this work for me
document.body.outerHTML = document.body.outerHTML.replace("</body>", "<!-- </body> -->");

@loSpaccaBit

Copy link
Copy Markdown

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";
});

@sonumishrAA

Copy link
Copy Markdown

code worked
thankew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment