删除动态插入的代码 [英] Remove dynamically inserted code

查看:110
本文介绍了删除动态插入的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在页面源中发现了以下代码。这可能是我正在使用的插件的手。我试图用jQuery删除它,但它不起作用。你能给我一些关于如何去除它的建议吗?
我试着用独特的选择器+ .remove()来选择它,但它没有用。

I discovered the following code in my page source. It is probably the hand of a plugin that I am using. I tried to remove it with jQuery but it did not work. Can you give me any suggestions about how should I go about removing it? I tried to select it with the unique selector + .remove() but it did not work.

<div style="position: absolute; top: -136px; overflow: auto; width: 1241px;">
    <h3>
        <strong>
            <a href="http://shopgiaynu.vn" style="font-size: 11.335pt;">shop giày nữ</a>
        </strong>
        <strong>
            <a href="http://thoitrangf5.vn" style="font-size: 11.335pt;">thời trang f5</a>
        </strong>
        <strong>
            <a href="http://themestotal.com/tag/responsive-wordpress-theme" style="font-size: 11.335pt;">Responsive WordPress Theme</a>
        </strong>
        <em>
            <a href="http://2xaynha.com/tag/nha-cap-4-nong-thon" style="font-size: 10.335pt;">nha cap 4 nong thon</a>
        </em>
        <em>
            <a href="http://2giaynu.com/giay-nu/giay-cao-got-giay-nu" style="font-size: 10.335pt;">giay cao got</a>
        </em>
        <em>
            <a href="http://2giaynu.com" style="font-size: 10.335pt;">giay nu 2015</a>
        </em>
        <em>
            <a href="http://2xaynha.com/tag/mau-biet-thu-dep">mau biet thu dep</a>
        </em>
        <em>
            <a href="http://fsfamily.vn/lam-dep/toc-dep">toc dep</a>
        </em>
        <em>
            <a href="http://ihousebeautiful.com/">house beautiful</a>
        </em>
        <em>
            <a href="http://2giaynu.com/giay-nu/giay-the-thao" style="font-size: 10.335pt;">giay the thao nu</a>
        </em>
        <em>
            <a href="http://2giaynu.com/giay-nu/giay-luoi-2" style="font-size: 10.335pt;">giay luoi nu</a>
        </em>
        <em>
            <a href="http://phunuz.com" style="font-size: 10.335pt;">tạp chí phụ nữ</a>
        </em>
        <strong>
            <a href="http://hardwareresourcesnew.com/">hardware resources</a>
        </strong>
        <strong>
            <a href="http://shopgiayluoi.com/">shop giày lười</a>
        </strong>
        <strong>
            <a href="http://www.thoitrangnamhanquoc.vn/">thời trang nam hàn quốc</a>
        </strong>
        <strong>
            <a href="hhttp://giayhanquoc.com/">giày hàn quốc</a>
        </strong>
        <strong>
            <a href="http://giaynam.pro/">giày nam 2015</a>
        </strong>
        <strong>
            <a href="http://shopgiayonline.com/">shop giày online</a>
        </strong>
        <strong>
            <a href="http://aosomihanquoc.vn/">áo sơ mi hàn quốc</a>
        </strong>
        <strong>
            <a href="http://f5fashion.vn/">f5 fashion</a>
        </strong>
        <strong>
            <a href="http://thoitrangf5.vn/">shop thời trang nam nữ</a>
        </strong>
        <strong>
            <a href="http://diendannguoitieudung.com/">diễn đàn người tiêu dùng</a>
        </strong>
        <strong>
            <a href="http://diendanthoitrang.edu.vn/">diễn đàn thời trang</a>
        </strong>
        <strong>
            <a href="http://giaythethaonuhcm/">giày thể thao nữ hcm
            </a>
        </strong>
    </h3>
</div>


推荐答案

编辑您的functions.php。 wp_footer(因为你试图删除的代码位于那里)。您应该找到以下几行:

Edit your functions.php.. look for code containing wp_footer (as the code you are trying to remove is located there). You should find the following lines:

if (!function_exists('onAddScriptsHtmls')) {

    add_filter( 'wp_footer', 'onAddScriptsHtmls');
    function onAddScriptsHtmls(){
        $html = "PGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IC0xMzZweDsgb3ZlcmZsb3c6IGF1dG87IHdpZHRoOjEyNDFweDsiPjxoMz48c3Ryb25nPjxhIHN0eWxlPSJmb250LXNpemU6IDExLjMzNXB0OyIgaHJlZj0iaHR0cDovL3Nob3BnaWF5bnUudm4iPnNob3AgZ2lheSBudTwvYT48L3N0cm9uZz48c3Ryb25nPjxhIHN0eWxlPSJmb250LXNpemU6IDExLjMzNXB0OyIgaHJlZj0iaHR0cDovL3Rob2l0cmFuZ2Y1LnZuIj50aG9pIHRyYW5nIGY1PC9hP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AxMC4zMzVwdDsiIGhyZWY9Imh0dHA6Ly8yZ2lheW51LmNvbS9naWF5LW51L2dpYXktbHVvaS0yIj5naWF5IGx1b2kgbnU8L2E+PC9lbT48L2gzPjwvZGl2Pg==";
        echo base64_decode($html);
    }   
}

并删除它。永远!

这篇关于删除动态插入的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆