Open only prize links in new tabs
This commit is contained in:
parent
95f1340722
commit
29af9ccc56
1 changed files with 3 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
// @description Allow removal of visited links on Amazon Giveaway Listing
|
// @description Allow removal of visited links on Amazon Giveaway Listing
|
||||||
// @include https://smile.amazon.com/ga/giveaways*
|
// @include https://smile.amazon.com/ga/giveaways*
|
||||||
// @include https://www.amazon.com/ga/giveaways*
|
// @include https://www.amazon.com/ga/giveaways*
|
||||||
// @version 1.9.0
|
// @version 1.9.1
|
||||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
|
@ -44,15 +44,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
//$('head').append('<base target="_blank" />');
|
|
||||||
|
|
||||||
$('.listing-info-container').on('click', 'a[href*="/ga"]', function(evt) {
|
$('.listing-info-container').on('click', 'a[href*="/ga"]', function(evt) {
|
||||||
|
|
||||||
var href = getSmallUrl($(this).attr('href'));
|
var href = getSmallUrl($(this).attr('href'));
|
||||||
localStorage[href] = "visited";
|
localStorage[href] = "visited";
|
||||||
hideOne(this);
|
hideOne(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.listing-info-container a[href*="/ga"]').attr('target', '_blank');
|
||||||
|
|
||||||
regex_hide = localStorage.getItem('regex_hide') || '';
|
regex_hide = localStorage.getItem('regex_hide') || '';
|
||||||
|
|
||||||
$('#giveaway-numbers-container')
|
$('#giveaway-numbers-container')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue