Amazon open in new tab
This commit is contained in:
parent
4f5c8aa8bf
commit
4a63a7f068
1 changed files with 3 additions and 1 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.7.3
|
// @version 1.8.0
|
||||||
// @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==
|
||||||
|
|
||||||
|
|
@ -39,6 +39,8 @@ var hideVisited = function(evt) {
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$('head').append('<base target="_blank" />');
|
||||||
|
|
||||||
$('#giveaway-grid').on('click', 'a[href*="amazon.com/ga"]', function(evt) {
|
$('#giveaway-grid').on('click', 'a[href*="amazon.com/ga"]', function(evt) {
|
||||||
|
|
||||||
var href = getSmallUrl($(this).attr('href'));
|
var href = getSmallUrl($(this).attr('href'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue