返回顶部

收藏

自动回复discuz论坛的隐藏贴

更多
var pattern = /<script\\s+[^>]*>replyreload.*<\\/script>/;
var html = document.documentElement.innerHTML;
var find = html.match(pattern);
if(find)
{
    var fp_msg = document.getElementById('fastpostmessage');
    var fp_button = document.getElementById('fastpostsubmit');
    var fp_refresh = document.getElementById('fastpostrefresh');
    if(fp_msg && fp_button)
    {
        msg = "总感觉哪里不对的样子";
        if(fp_refresh)
        {
            tmp = fp_refresh.checked;
            fp_refresh.checked = false;
        }
        fp_msg.innerText = msg;
        fp_button.click();
        fp_refresh.checked = tmp;
    }
}
//该片段来自于http://outofmemory.cn

标签:javascript,基础

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2012-11-05 21:59:42java获得随机数代码 by 怪兽狂殴奥特曼
  2. 2014-08-22 13:00:15滚动新闻 by GauSir
  3. 2014-09-04 12:42:50检测各种浏览器 by arden
  4. 2014-10-11 13:43:12滑动背景链接 by 林峰
  5. 2014-10-22 14:40:06json字符串和json 对象 by huwei
  6. 2014-11-05 12:37:28canvas+js+css3实现的时钟 by init0
  7. 2014-11-27 11:59:28今天吃什么?点餐助手升级版- JS+HTML5 by 林峰
  8. 2014-12-01 21:22:13JavaScript replace方法使用 by shenspring
  9. 2014-12-04 10:48:31JS复制到粘贴板 by 猩猩总统
  10. 2014-06-06 20:59:45isType by tsl0922
  11. 2014-06-07 17:09:37编写一个函数,判断传入的字符串是否含有特殊字符 by huwei

发表评论