什么是 Ask Ubuntu Clean Up 脚本?

什么是 Ask Ubuntu Clean Up 脚本?

脚本如何安装以及安装在哪里?

// ==UserScript==
// @name           Ask Ubuntu Clean Up
// @namespace     http://userscripts.org/users/217436
// @include     http://cleanup.thepcspy.com/*
// @include     http://askubuntu.com/*
// @include     http://www.askubuntu.com/*
// ==/UserScript==

var script = document.createElement("script");
script.textContent = "(" + function() {
    if (window.location.hostname.indexOf("cleanup.thepcspy.com") != -1)
        return $('#barbanner').hide();

    $('head').append('<link rel="stylesheet" href="http://cleanup.thepcspy.com/media/external.css" type="text/css" />');
    $('#custom-header').after('<div id="aucuholder" class="container"></div>');

    $.getJSON('http://cleanup.thepcspy.com/?callback=?', function(data){
        $('#aucuholder').html(data);
        $('#aucuopen').click(function(){$('#aucuqs').toggle();return false;})
    });
}.toString() + ")();";
document.body.appendChild(script);

答案1

它看起来像油脂猴脚本。你可以从这里安装它:

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

扩展程序安装完成后,单击清理站点上的“安装 UserScript”链接将提示您安装它。

相关内容