Computerexpert User

Actually the code may be fine. I tested it on a different browser. It just doesn't work with Greasemokey for some reason.








Re: @Computerexpert:

Cuzi - I found one more problem that I can't figure out.

When I got to the front page of eBay it disables some photos for some reason.

I have disabled all GM scripts including this one. I then just added my script back in, but it still happens.

See photo below:

enter image description here



Actually it works when I click the link.

So the page navigation numbers at the bottom will not run the GM Script again. It seems that it will only run it once.



Hey Cuzi - any idea on how to make it work once I click the 2nd page on eBay?

It seems as though it will work on the first run, but if I click page 2 for more results it doesn't work for some reason.





$('document').ready(function() {
    $(".bids").each(function() {
        var text = $(this).text();
        var regExp = /[0-9]+.(b|B)ids?/;
        
        if (regExp.test(text)) {
            var match = regExp.exec(text);
            var sNumBids = match[0].split(" ",1);
            var numBids = parseInt(sNumBids, 10);
            if(numBids > 0) {
            //	$(this).closest('li.li').css("border","3px solid red, background-color":"yellow"});
                $(this).closest('li.li').css("border","3px solid red");
                $(this).closest('li.li').css("background-color,"yellow");
            }
        }
    });

});

Hello,

This script worked fine a few weeks ago and now no longer works.

Can someone please help get it going for me?

Thanks a lot.

// ==UserScript==
// @name eBay - Hilight Items With Bids
// @namespace http://userscripts.org/users/126140
// @include http://.ebay./*
// @grant none
// @updateURL https://userscripts.org/scripts/source/66089.meta.js
// @downloadURL https://userscripts.org/scripts/source/66089.user.js
// @version 2.2.1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @description Hilights items that have bids with a red border and yellow background.
// ==/UserScript==

$('document').ready(function() {
$(".bids").each(function() {
var text = $(this).text();
var regExp = /[0-9]+.(b|B)ids?/;

    if (regExp.test(text)) {
        var match = regExp.exec(text);
        var sNumBids = match[0].split(" ",1);
        var numBids = parseInt(sNumBids, 10);
        if(numBids > 0) {
            $(this).closest('table').css("border","3px solid red");
            $(this).closest('table').css("background-color","yellow");
        }
    }
});

});