作者:古台山_683 | 来源:互联网 | 2023-05-18 18:25
IhaveabitofHTMLthatseemstogettinginjectedintomysite.Ihavecheckedtheskinhtml,the
I have a bit of HTML that seems to getting injected into my site. I have checked the skin html, the modules on the page (settings and develop) and the page settings withing and I can't see where it is coming from.
我有一些HTML似乎被注入我的网站。我检查了皮肤html,页面上的模块(设置和开发)和页面设置,我无法看到它来自哪里。
As A work around I am trying to add some jquery to remove it. However I think the html is coming from one of the jquery files in one of the modules added. The site has too many modules to look at so it's like looking for a needle in a haystack.
作为一个解决方法,我试图添加一些jquery来删除它。但是我认为html来自其中一个模块中的一个jquery文件。该网站有太多的模块无法查看,所以就像在大海捞针一样。
My issue is when i try to hide this and the following is the last element within the body tag.
我的问题是当我试图隐藏它时,以下是body标签中的最后一个元素。
I use the following jquery
我使用以下jquery
$(document).ready(function() {
$("html > body > div > li a[href$='www.hatayescortbayanim.com']").parent().parent().empty();
});
or
$(document).ready(function() {
$('body > div:last-child').remove();
});
It does not work.........as it is not the last thing to load. What is the last .js file to load with DNN?
它不起作用.........因为它不是最后加载的东西。使用DNN加载的最后一个.js文件是什么?
I want my custom fix to run last. Alternatively how can I track where the unwanted HTML is coming from? I have done a search through all of the files for 'hatay escort' but i'm having no luck. Any help would be greatly appreciated.
我希望我的自定义修复程序最后运行。或者,我如何跟踪不需要的HTML的来源?我已经搜索了所有'hatay护送'的文件,但我没有运气。任何帮助将不胜感激。
2 个解决方案