From ab8566ebd95952f69836d07ec4e8a96e47acb817 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Mon, 23 Oct 2017 07:59:12 -0500 Subject: [PATCH] amaz-giveaway: Get title on old layout --- amaz.giveaway.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amaz.giveaway.user.js b/amaz.giveaway.user.js index 758614b..13be54a 100644 --- a/amaz.giveaway.user.js +++ b/amaz.giveaway.user.js @@ -4,7 +4,7 @@ // @description Allow removal of visited links on Amazon Giveaway Listing // @include https://smile.amazon.com/ga/giveaways* // @include https://www.amazon.com/ga/giveaways* -// @version 1.7.1 +// @version 1.7.2 // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js // ==/UserScript== @@ -31,8 +31,8 @@ var hideVisited = function(evt) { hideOne(this); } - var title = $(this).find('.giveawayPrizeNameContainer').text(); - if (hide && hide.test(title)) { + var title= $(this).parent('.a-row').siblings('.ellipsis-1-line').text(); + if (hide && title && hide.test(title)) { hideOne(this); } });