Is there any possibility using javascript to block the favicon of a webpage ?
I can change it, but I'm not able to find a way to block the original one. Is it possible ?
I tried this, without success :
var newLink = document.createElement("link");
newLink.setAttribute("rel", "icon");
newLink.setAttribute("href", "###");
document.querySelector("head").appendChild(newLink);
Thank you for your help !
As far as I know you can delete the favicon from your own webpage by simply removing or renaming it..
I don't think it is possible to have favicons blocked from other websites and why would you want that?
我认为您不需要阻止网站图标....并且您可以在浏览器设置中阻止它
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.