简体   繁体   English

如何在Wordpress网站上隐藏外部Java代码的图像

[英]How to hide image of external java sciprt code on wordpress site

I need a solution to hide a image of external javascript. 我需要一种解决方案来隐藏外部javascript的图像。 I have a website. 我有一个网站。 I am using a free tracker service to track my visitor. 我正在使用免费的跟踪服务来跟踪我的访客。 So, the tracker give me a code which I placed in footer of my site. 因此,跟踪器给了我一个代码,该代码放置在网站的页脚中。 But the script create a little image icon. 但是脚本会创建一个小图像图标。 Which is clickable. 可点击的。 So, anyone can see my site data. 因此,任何人都可以看到我的站点数据。 So, I want to use the tracker code, but hide the image. 因此,我想使用跟踪代码,但隐藏图像。 Which make sure only I'm able to view all of my site data. 确保只有我才能查看我的所有站点数据。 The javascript code is encrypted or much complex. javascript代码已加密或复杂得多。 So, I can't solve my problem. 所以,我无法解决我的问题。 I google for similar questions. 我用谷歌搜索类似的问题。 But answer is not specific. 但是答案并不具体。 As, I am a beginner, I need details instruction. 作为我的初学者,我需要详细说明。

I added the source code. 我添加了源代码。 here "jbahe" is my username. 这里的“ jbahe”是我的用户名。 My site is https://jagobahe.com 我的网站是https://jagobahe.com

Thanks in advance. 提前致谢。

<script src="//t1.extreme-dm.com/f.js" id="eXF-jbahe-0" async defer></script>

You can hide the image with CSS 您可以使用CSS隐藏图像

#eXTReMe-Free-jbahe {
    display:none;
}

Or if you must use JS 或者如果您必须使用JS

document.getElementById('eXTReMe-Free-jbahe').style.display = 'none'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM