$(document).ready(function(){
  var links = new Array();

  $(".title_wrp").each(function(){
    var href = $(this).attr('href');
    links.push(href)
  })

// 发送消息
  chrome.runtime.sendMessage({
    action: "links",
    status: "ok",
    data: links
  });
});

@@ -51,16 +51,1374 @@
 ray();%0A%0A
+  var current_link = window.location;%0A%0A  function getPageCount()%7B%0A    var count = %2210%22;%0A    var location = window.location;%0A    results = location.search.split(%22&%22);%0A%0A    for (var i = 0; i %3C results.length; i++) %7B%0A      value = results%5Bi%5D;%0A%0A      if(/count/.test(value))%7B%0A        count = value.split(%22=%22)%5B1%5D;%0A      %7D%0A    %7D%0A%0A    return count;%0A  %7D%0A%0A  function generateHref(ele)%7B%0A    var page_link = ele.attr('href');%0A    var values = page_link.split(%22&%22);%0A%0A    for (var i = 0; i %3C values.length; i++) %7B%0A      value = values%5Bi%5D;%0A%0A      if (/count/.test(value)) %7B%0A        values%5Bi%5D = %22count=50%22;%0A        break;%0A      %7D%0A    %7D%0A%0A    return values.join(%22&%22);%0A  %7D%0A%0A  function generateNextBtn()%7B%0A    var ele = $(%22.tab_nav:last%22);%0A    ele.after(%22%3Cli class='zqw' style='float:left; left: 10px'%3E%3Ca href='javascript:;'%3E%E4%B8%8B%E4%B8%80%E9%A1%B5%3C/a%3E%3C/li%3E%22);%0A%0A    $(%22.zqw%22).on('click', function()%7B%0A      $(%22.page_next%22)%5B0%5D.dispatchEvent(new MouseEvent(%22click%22));%0A    %7D);%0A  %7D%0A%0A  if (/masssendpage%5C?t=mass%5C/list/.test(current_link.href))%7B //%E5%88%A4%E6%96%AD%E6%98%AF%E5%90%A6%E5%9C%A8%E5%B7%B2%E5%8F%91%E9%80%81%E9%A1%B5%E9%9D%A2%0A    // %E4%BF%AE%E6%94%B9%E9%BB%98%E8%AE%A4%E7%9A%84%E6%9C%80%E5%A4%A7 count %E6%95%B0%E9%87%8F %E4%B8%BA 50, %E9%BB%98%E8%AE%A4%E4%B8%BA 10%0A    // https://mp.weixin.qq.com/cgi-bin/masssendpage?t=mass/list&action=history&begin=0&count=20%0A    var ele = $(%22.tab_nav:last %3E a%22);%0A    var count = getPageCount(ele);%0A    var href = generateHref(ele);%0A    $(%22.tab_nav:last %3E a%22).html(%22%E5%B7%B2%E5%8F%91%E9%80%81 (%22+count+%22)%22).attr('href',href);%0A    generateNextBtn();%0A  %7Delse %7B%7D%0A%0A
   $(%22.ti
@@ -1501,16 +1501,17 @@
 sh(href)
+;
 %0A  %7D)%0A%0A/

modify current page max count num