Google History Deleter

Automatically selects and deletes history from history.google.com

当前为 2016-06-19 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Google History Deleter
// @namespace    https://history.google.com/history
// @version      0.2.1
// @description  Automatically selects and deletes history from history.google.com
// @author       RexOmni
// @match        https://history.google.com/history/*
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @updateULR    https://openuserjs.org/meta/RexOmniFurtim/Google_History_Deleter.meta.js
// ==/UserScript==

(function() {
    var isWorking = false;
    var t=setInterval(work,1000);

    //md-checked
    function work(){
        if(isWorking){
            // click all epty checkmarks
            $("md-checkbox.ng-empty").click();

            // if there is a load more button
            if($("button[ng-click='lookupController.loadMore()']").length === 0){
                $("button[ng-click='lookupController.loadMore()']").click(); // load more
            }
            else {
                console.log("Deleting");
                $("button.history-delete-btn").click();
            }
        }}

    window.onkeydown = function(event) {
        // key code '3'
        if (event.keyCode === 51) {
            if (!isWorking){
                alert("On");

                isWorking = true;
            }
            else{
                alert("Off");
                isWorking = false;
            }
        }
    };

    console.log("GoogleHistoryCLicker Loaded!");
})();