Skip to content

Instantly share code, notes, and snippets.

@Richienb
Last active June 1, 2024 14:46
Show Gist options
  • Save Richienb/92ed3443519f782cbc73143b190b238b to your computer and use it in GitHub Desktop.
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;}
@adwidu
Copy link

adwidu commented Mar 18, 2023

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
Copy link

val74k commented Jun 28, 2023

@DeadBoxxes
Copy link

DeadBoxxes commented Sep 20, 2023

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
Copy link

sinehan001 commented Dec 8, 2023

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
Copy link

H281994 commented Mar 3, 2024

<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

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

Guy's Try It

@fripokoff
Copy link

fripokoff commented Apr 13, 2024

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

@loSpaccaBit
Copy link

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

code worked
thankew

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