HIT Scraper Ghost

Now hits hang around foreeeever.

// ==UserScript==
// @name         HIT Scraper Ghost
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Now hits hang around foreeeever.
// @author       You
// @match        https://www.mturk.com/mturk/findhits*hit_scraper
// @grant        none
// ==/UserScript==

(function() {
    // Load the script
    var script = document.createElement("SCRIPT");
    script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
    script.type = 'text/javascript';
    script.onload = function() {
        var $ = window.jQuery;
        // Create new results...
        $('body').append("<table id='ghost'></table>");

       function update() {
           console.log('Only triggered once');
           var newElements = $('tr.shine:not(.ignored):not(blocklisted)').clone().prependTo('#ghost');
           $('#ghost tr').slice(16).remove();           
       }
        var triggerTimer;
            function triggerUpdate() {
                console.log('triggerd');
                
                clearTimeout(triggerTimer);
               // create timer function
                triggerTimer = setTimeout(update,100);
            }
        
        
        $('#resultsTable').on('DOMNodeInserted DOMNodeRemoved webkitTransitionEnd input', function() {
            triggerUpdate();
            // Get elements.
            
        
        });
    };
    document.getElementsByTagName("head")[0].appendChild(script);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址