// ==UserScript==
// @name Cetak Sekaligus Kertas A6
// @author Celleven Store
// @namespace https://www.tokopedia.com/celleven
// @version 0.0.1
// @description Untuk mencetak multi print buat kertas ukuran A6 untuk Tokopedia, Bukalapak dan Shopee
// @include https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @match https://www.tokopedia.com/print-address.pl*
// @match https://seller.shopee.co.id/api/v2/orders/waybill*
// @run-at document-idle
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
var backgroundImage = '';
var logo = '';
if (window.location.href.indexOf("tokopedia") > -1)
{
cetakTokopedia();
}
else if (window.location.href.indexOf("shopee") > -1)
{
cetakShopee();
}
else if (window.location.href.indexOf("bukalapak") > -1)
{
cetakBukalapak();
}
})();
function cetakTokopedia()
{
var styleCSS = ``;
$('body').append(styleCSS);
}
function cetakShopee()
{
var styleCSS = ``;
$('style:last').html($('style:last').html().replace('A4 landscape', 'auto'));
$('head').append(styleCSS);
$('div.page-breaker').remove();
$('div:last').remove();
$('img.scissors-vertical').remove();
}
function cetakBukalapak()
{
}