diff --git a/myscript.js b/myscript.js index 9b75fc64c359b7d3f5826150fd5b845c328507ac..d285e5acc2c463653cbc92b47000ef4537fd4c15 100644 --- a/myscript.js +++ b/myscript.js @@ -2,20 +2,28 @@ $(function(){ var count = 10; function expand(){ - var ok = false; - var e = $('.hide-article-box'); - if(e.length > 0){ - ok = true; - e.remove(); - $('#article_content').removeAttr('style'); - } + // var ok = false; + // var e = $('.hide-article-box'); + // if(e.length > 0){ + // ok = true; + // e.remove(); + // $('#article_content').removeAttr('style'); + // } - console.log("expand", ok, count); + // console.log("expand", ok, count); - if(!ok && --count){ - setTimeout(expand, 500); - } + // if(!ok && --count){ + // setTimeout(expand, 500); + // } + $(".hide-preCode-bt").click(); + $(".look-more-preCode").click(); + $(".contentImg-no-view").click(); + setTimeout(kyCopy,1000); + } + function kyCopy(){ + console.log("ssssssssssssss"); + $("#content_views").attr("id","#content_views_text"); } - expand(); + setTimeout(expand, 500); }); \ No newline at end of file