Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

how and where is the script installed?

// ==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);
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

It looks like a Greasemonkey script. You can install it from here:

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

Once the extension is installed, clicking on the "Install UserScript" link on the Clean Up site should prompt you to install it.

share|improve this answer
    
that was easy, thanks –  Ringtail Feb 24 '12 at 2:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.