小编Joh*_*ith的帖子

如果页面包含特定文本,则重新加载(使用javascript)

如果We are sorry but we made a boo boo出现文本

  1. 等5秒钟
  2. 重装

我想用JavaScript做到这一点.

这是一次尝试

(function () {
"use strict";

function walkTheDOM(node, func) {
    if (node && node.nodeType) {
        if (typeof func === "function") {
            func(node);
        }

        node = node.firstChild;
        while (node) {
            walkTheDOM(node, func);
            node = node.nextSibling;
        }
    }
}

function filterElementsByContains(elements, string) {
    var toStringFN = {}.toString,
        text = toStringFN.call(elements),
        result,
        length,
        i,
        element;

    if (text !== "[object NodeList]" && text !== "[object Array]" && !($() instanceof jQuery)) …
Run Code Online (Sandbox Code Playgroud)

javascript fluid-mac-app-engine greasekit

2
推荐指数
1
解决办法
3840
查看次数

Greasemonkey脚本每分钟重新加载页面

如何每60秒重新加载一次页面?

我的尝试:

setTimeout (location.reload, 1 * 60 * 60);
Run Code Online (Sandbox Code Playgroud)

我不确定这些数字是什么意思,或者如何使它们仅在60秒后重新加载.

javascript greasemonkey reload

2
推荐指数
2
解决办法
1万
查看次数