“精选”部分中的文字更改

时间:2018-04-24 16:33:36

标签: javascript html blogger

我正在尝试更改“精选”部分中的“立即购买”文字,但我无法在HTML中的任何地方找到这些文字。关于如何改变它的任何想法?

这是网站链接:https://www.santaclarabookstore.com.br/

特色栏目代码:(完整代码位于 - https://pastebin.com/raw/TJ3hiupB

<script>//<![CDATA[
imgr = new Array();
imgr[0] = "http://sites.google.com/site/fdblogsite/Home/nothumbnail.gif";
showRandomImg = true;
aBold = true;
summaryPost = 150; 
summaryTitle = 50; 
numposts1 = 10;

var _c5JhUg= "....Code String present in Pastebin link as Stackoverflow character limit was being hit....";
eval(_c5JhUg);

//]]>
</script>

如果您需要任何进一步的信息或网站HTML的一些代码,请告诉我,我很乐意提供。

1 个答案:

答案 0 :(得分:0)

由于控制SHOP NOW按钮文本的JavaScript代码采用混淆形式,因此我们首先必须使代码可读。有各种各样的工具可用于实现这一目标。我们将使用Chrome Dev Tools的控制台和http://jsbeautifier.org来实现此目的。最后,您必须先替换混淆代码 -

var _c5JhUg= "....Very Long String....";
eval(_c5JhUg);

使用未经模糊处理的代码 -

function removeHtmlTag(_0xa164x2, _0xa164x3) {
var _0xa164x4 = _0xa164x2['split']('<');
for (var _0xa164x5 = 0; _0xa164x5 < _0xa164x4['length']; _0xa164x5++) {
    if (_0xa164x4[_0xa164x5]['indexOf']('>') != -1) {
        _0xa164x4[_0xa164x5] = _0xa164x4[_0xa164x5]['substring'](_0xa164x4[_0xa164x5]['indexOf']('>') + 1, _0xa164x4[_0xa164x5]['length'])
    }
};
_0xa164x4 = _0xa164x4['join']('');
_0xa164x4 = _0xa164x4['substring'](0, _0xa164x3 - 1);
return _0xa164x4
}

function sliderposts(_0xa164x7) {
j = showRandomImg ? Math['floor']((imgr['length'] + 1) * Math['random']()) : 0;
img = new Array;
if (numposts1 <= _0xa164x7['feed']['entry']['length']) {
    maxpost = numposts1
} else {
    maxpost = _0xa164x7['feed']['entry']['length']
};
for (var _0xa164x5 = 0; _0xa164x5 < maxpost; _0xa164x5++) {
    var _0xa164x8 = _0xa164x7['feed']['entry'][_0xa164x5];
    var _0xa164x9 = _0xa164x8['category'][0]['term'];
    var _0xa164xa = _0xa164x8['title']['$t'];
    var _0xa164xb;
    var _0xa164xc;
    if (_0xa164x5 == _0xa164x7['feed']['entry']['length']) {
        break
    };
    for (var _0xa164xd = 0; _0xa164xd < _0xa164x8['link']['length']; _0xa164xd++) {
        if (_0xa164x8['link'][_0xa164xd]['rel'] == 'alternate') {
            _0xa164xc = _0xa164x8['link'][_0xa164xd]['href'];
            break
        }
    };
    for (var _0xa164xd = 0; _0xa164xd < _0xa164x8['link']['length']; _0xa164xd++) {
        if (_0xa164x8['link'][_0xa164xd]['rel'] == 'replies' && _0xa164x8['link'][_0xa164xd]['type'] == 'text/html') {
            _0xa164xb = _0xa164x8['link'][_0xa164xd]['title']['split'](' ')[0];
            break
        }
    };
    if ('content' in _0xa164x8) {
        var _0xa164xe = _0xa164x8['content']['$t']
    } else {
        if ('summary' in _0xa164x8) {
            var _0xa164xe = _0xa164x8['summary']['$t']
        } else {
            var _0xa164xe = ''
        }
    };
    postdate = _0xa164x8['published']['$t'];
    if (j > imgr['length'] - 1) {
        j = 0
    };
    img[_0xa164x5] = imgr[j];
    s = _0xa164xe;
    a = s['indexOf']('<img');
    b = s['indexOf']('src="', a);
    c = s['indexOf']('"', b + 5);
    d = s['substr'](b + 5, c - b - 5);
    if (a != -1 && (b != -1 && (c != -1 && d != ''))) {
        img[_0xa164x5] = d
    };
    var _0xa164xf = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
    var _0xa164x10 = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
    var _0xa164x11 = postdate['split']('-')[2]['substring'](0, 2);
    var _0xa164x12 = postdate['split']('-')[1];
    var _0xa164x13 = postdate['split']('-')[0];
    for (var _0xa164x14 = 0; _0xa164x14 < _0xa164xf['length']; _0xa164x14++) {
        if (parseInt(_0xa164x12) == _0xa164xf[_0xa164x14]) {
            _0xa164x12 = _0xa164x10[_0xa164x14];
            break
        }
    };
    var _0xa164x15 = _0xa164x11 + ' ' + _0xa164x12 + ' ' + _0xa164x13;
    if (_0xa164x5 == 0) {
        var _0xa164x16 = '<div class="main-post col-post"><a href="' + _0xa164xc + '"><img src="' + img[_0xa164x5] + '" alt=""></img></a><header><span><a href="' + _0xa164xc + '">Shop Now</a></span><h3 class="entry-title"><a href="' + _0xa164xc + '" title="">' + _0xa164xa + '</a></h3></header></div>';
        document['write'](_0xa164x16)
    } else {
        var _0xa164x16 = '<div class="secondary-post col-post" style="margin-right:0"><a class="hover_play_small" href="' + _0xa164xc + '"><img src="' + img[_0xa164x5] + '" height="200" width="320"></img></a><header><span><a href="' + _0xa164xc + '">Shop Now</a></span><h4><a href="' + _0xa164xc + '">' + _0xa164xa + '</a></h4></header></div>';
        document['write'](_0xa164x16)
    };
    j++
}
}
$(document)['ready'](function() {
setInterval(function() {
    if (!$('#mycontent:visible')['length']) {
        window['location']['href'] = 'http://www.soratemplates.com/'
    }
}, 3000)
});
window['onload'] = function() {
var _0xa164x17 = document['getElementById']('mycontent');
_0xa164x17['setAttribute']('href', 'http://www.soratemplates.com/');
_0xa164x17['setAttribute']('rel', 'dofollow');
_0xa164x17['setAttribute']('title', 'Free Blogger Templates');
_0xa164x17['setAttribute']('style', 'display: inline-block!important; font-size: inherit!important; color: #FFC000!important; visibility: visible!important;z-index:99!important; opacity: 1!important;');
_0xa164x17['innerHTML'] = 'SoraTemplates'
}

在这个新代码中,您将找到2个Shop Now文本实例。用您想要的文字替换那些