Raw Source
kalpdev.1 / logo hide image

// ==UserScript==
// @name        logo hide image
// Written by shubham jaiswal
// @namespace   http://bit.ly/sdjuserjs
// @description Eazy DG Classification Amazon
// @include     https://argus.aka.amazon.com/*
// @version     2.1
// @grant       none
// @updateURL   http://bit.ly/sdjuserjs
// @downloadURL http://bit.ly/sdjuserjs
// @copyrights  s
// @license MIT

// ==/UserScript==

function getURLASIN() {
  var m;
  m = document.location.href.match(/(?:.+\/)?dp\/([^/?]+)/);
  if (m) return m[1];
  m = document.location.href.match(/gp\/product\/([^/?]+)/);
  if (m) return m[1];
  m = document.location.href.match(/ASIN\/([^/?]+)/);
  if (m) return m[1];
}

function getDPASIN() {
  var n;
  n = document.getElementById('ASIN').value;
  if (n) return n;
  n = document.getElementByName('ASIN').value;
  if (n) return n;
}

function showAnAlert( URL, DP){
  alert("Closing! This page ASIN:" + DP + " , but the URL ASIN:" + URL + "\nPlease ignore this Marketplace ASINs");
}

function testAlert(){
  var URL = getURLASIN();
  var DP = getDPASIN();
  if ( URL != DP ) window.close();
}

window.onLoad = testAlert();

function shjaisw(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

shjaisw (
	'.nav-user-badge-pic { height: 50px; display: none; border-radius: 20%; padding: 5px 0; }'
	+
	'.a-box .a-box-inner { border-radius: 4px; position: relative; display: none; }'
    +
	'.a-carousel-col { display: none; min-height: 1px; position: relative; zoom: 1; }'
    +
    '#navFooter.navLeftFooter { display: none; padding-bottom: 0; background-color: #232F3E; min-width: 1000px; position: relative; }'
    +
    '#rhf .rhf-footer { display: none; }'
    +
    '.a-spacing-top-base { margin-top: 14px!important; background: lavender; }'
    +
    '#rhf .rhf-header { font-size: 20px; text-align: left; display: inline-block; display: none; }'
    +
    '#tell-a-friend { display: none; }'
    +
    '#ad { background-color: #fff; cursor: pointer; display: none; }'
    +
    '#staticImage { display: none; }'
    +
    'div#HLCXComparisonWidget_feature_div.feature { display: none; }'
    +
    'div#productDescription { background: wheat; }'
    +
    'div#sims-fbt-container.a-container { display: none; }'
    +
    '.askInlineWidget { display: none; }'
    +
    '#staticImage { display: none; }'
    +
    'div.productDescriptionWrapper { background: wheat; }'
    +
    'div#navFooter {display: none; }'
    +
    'div.productDescriptionWrapper { margin: 0 0 1em 0; background: wheat; }'
    +
    'div.productDescriptionWrapper { margin: 0 0 1em 0; background: wheat; }'
    +
    '#dp .a-container { min-width: 1070px!important; background: #F9F6F5; }'
    +
    '#div-gpt-ad {display: none; }'
    +
    '.askDPSearchViewContent { display: none; }'
    +
    '#store-disclaimer_feature_div td table td { padding: 5px; display: none; }'
    +
    '#view_to_purchase-sims-feature { display: none; }'
    +
    '.burj #productTitle { font-size: 20px!important; background: wheat; }'
    +
    '.a-spacing-micro, .a-ws .a-ws-spacing-micro { margin-bottom: 4px!important; display: none; }'
    +
    '#productTitle { font-size: 19px!important; background: wheat; }'
    +
    '.a-size-small { font-size: 12px!important; line-height: 1.5!important; display: none; }'
    +
    'div#promotions_feature_div { display: none; }'
    +
    '.burj #fbSection #aboutTheProductText { margin-left: 10px; padding-top: 8px; display: block; background: wheat; }'
    +
    '#detail-bullets, #detail_bullets_id, #technical-data { padding-bottom: 10px; background: lavender; }'
    +
    '.a-spacing-top-small { margin-top: 10px!important; background: wheat; }'
    +
    '.a-carousel-header-row .a-column, .a-carousel-header-row h1, .a-carousel-header-row h2, .a-carousel-header-row h3, .a-carousel-header-row h4, .a-carousel-header-row h5, .a-carousel-header-row h6 { line-height: inherit; font-size: inherit; display: none; }'
    +
    '#productDescription { color: #333333; word-wrap: break-word; background: wheat; font-size: large; line-height: initial; margin: 0.5em 0px 0em 25px; }'
);