kalpdev.1 / ParaShoot for Paragon 2

// ==UserScript==
// @name     ParaShoot for Paragon 2
// @namespace     kalpsdj
// @author        Shjaisw
// @license       MIT
// @version     1.4
// @description Tool used for paragon process
// @copyright 2020, kalpdev.1
// @updateURL https://openuserjs.org/meta/kalpdev.1/ParaShoot_for_Paragon_2.meta.js
// @downloadURL https://openuserjs.org/install/kalpdev.1/ParaShoot_for_Paragon_2.user.js
// @include  https://*/view-case?caseId*
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant    GM_addStyle

// ==/UserScript==

$("body").append ( `
    <div id="guide">
<style>
div#guide {padding: 4px;font-weight: bold;font-size:small; width:170px; height:28px; bottom:25px; background-color:rgba(236, 199, 199, 0.12); color:#00796b; padding:0;margin:0;border-radius:8px;position: fixed; top: 50%; right: 4%;z-index:10000; text-align:center;margin-top:40px; box-shadow: 4px 4px 8px  #00796b;" }

</style>
    <html>

<button onclick="closeWin()"; id="hide" >ParaShoot Search </button>
		

		<!-- Compiled and minified JavaScript -->
		<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>

		<!-- Icons Included -->
		<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

		<style>
			body{ margin:0px;	padding:0px;}
			.form-section{ padding: 10px 0;	}
div.card-panel.teal {background: bisque;}
.btn, .btn-large, .btn-small {
    text-decoration: none;
    color: #fff;
    background-color: #26a69a;
    text-align: center;
    -webkit-transition: background-color .2s ease-out;
    transition: background-color .2s ease-out;
    cursor: pointer;
}
.btn, .btn-large, .btn-small, .btn-floating, .btn-large, .btn-small, .btn-flat {
    font-size: 4px;
    outline: 0;
}
.btn, .btn-large, .btn-small, .btn-flat {
    border: none;
    border-radius: 3px;
    display: inline-block;
    height: 27px;
    text-align: right;
    line-height: 1px;
    padding: 0 5px;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.card-panel {
    -webkit-transition: -webkit-box-shadow .25s;
    transition: -webkit-box-shadow .25s;
    transition: box-shadow .25s;
    transition: box-shadow .25s, -webkit-box-shadow .25s;
    padding: 4px;
    font-weight: 100;
    margin: 0rem 0 orem 0;
    border-radius: 5px;
    background-color: #fff;
}
		</style>

		<script>
		function openAllLinks(productID){
			var prod_id = productID;
			var i;
			var links = ["https://image-assist.amazon.com/vision/vision?asin=",
                         "https://browse-query-editor-na.aka.amazon.com/?browseNodeFilter=category-node-live-on-website&catalogAttributes=gl_product_group_type%2Cproduct_type%2Citem_classification%2Cproduct_site_launch_date%2Citem_name%2Cmanufacturer_minimum_age%2Cpart_number%2Cmodel_number%2Cbullet_point%2Cproduct_description%2Ccpsia_cautionary_statement%2Csafety_warning%2Cbrand%2Cmanufacturer%2Ceu_toys_safety_directive_age_warning%2Ceu_toys_safety_directive_warning%2Ceu_toys_safety_directive_language&marketplaceId=1&pageSize=250&retailAsins=N&showImages=N&useSuggestedBrowseNode=N&variationParentOnly=N&websiteSearchable=N&userQuery=",
                         "https://csi.amazon.com/view?view=simple_product_data_view&marketplace_id=1&customer_id=&merchant_id=&sku=&fn_sku=&gcid=&fulfillment_channel_code=&listing_type=purchasable&submission_id=&order_id=&external_id=&search_string=&realm=USAmazon&stage=prod&domain_id=&keyword=&submit=Show&item_id="];
					

			for(i=0;i<links.length; i++)
			{
				var win = window.open(links[i]+prod_id, '_blank');
				if (win) {	
					win.blur();
				} else {	
					alert('Please allow popups for this website');
				}
			}
		}
function closeWin() {
$('#hide').hide();
$('#guide').hide();
}
		</script>

	</head>
	<body>

	<div class="wrap">
		<section class="form-section">
			<div class="container">
				<div class="row">
					<div class="col s12 l12 m12 center-align">

					</div>

					<div class="col s12 l12 m12 center-align">
						<div class="row">
							<div class="col s12 m6 offset-m3">
								<div class="card-panel teal">
									<form action="https://paragon-na.amazon.com/" method="post" target="_blank"  onsubmit="return openAllLinks(document.getElementById('prod_code').value);">
<form onsubmit="window.location.reload();">
										<input type="text" class="white-text" placeholder="ASIN" name="prod_code" id="prod_code" required>
										<br /><br />
										<button class="btn waves-effect waves-light" type="submit"  name="action"> <i class="material-icons right">send</i></button>
									</form>
								</div>
							</div>
						</div>
					</div>

				</div>
			</div>
		</section>
	</div>

	</body>
</html>

` );