// ==UserScript== // @name Tokopedia Cetak Sekaligus Non Gold Merchant // @author rendy1287 // @namespace http://www.github.com/rendy1287 // @source https://github.com/rendy1287/tokopedia-cetak-sekaligus // @version 0.07 // @description Untuk mencetak label alamat pada Tokopedia bagi pengguna Non / Bukan Gold Merchant. // @license MIT License. // @icon https://ecs7.tokopedia.net/img/favicon.ico // @match https://www.tokopedia.com/myshop_order_process.pl* // @match https://tokopedia.com/myshop_order_process.pl* // @include https://www.tokopedia.com/myshop_order_process.pl* // @include https://tokopedia.com/myshop_order_process.pl* // @run-at document-end // @require https://greasyfork.org/scripts/40090-default-template-tokopedia-label-print/code/Default%20Template%20Tokopedia%20Label%20Print.js?version=262173 // @downloadURL none // ==/UserScript== // //***************** PENGATURAN *************************************// // // @logotoko URL logo toko jika kamu ingin cantumkan logo // isikan url image kamu, bisa upload ke image hosting // logo recommended size: 115x25 pixel // // @ekspedisi menampilkan logo ekspedisi, isikan true jika // ingin menampilkan atau false jika tidak // // @invoice menampilkan nomor invoice, isikan true jika // ingin menampilkan atau false jika tidak // // @fontsize ukuran font untuk label // //******************************************************************// const logotoko = 'https://ecs7.tokopedia.net/img/logo-tokopedia-32.png'; const ekspedisi = true; const invoice = true; const fontsize = '12px'; //*****************************************************************// // // SCRIPT DI BAWAH INI JANGAN DIUBAH JIKA TIDAK MENGERTI // //*****************************************************************// (function() { 'use strict'; var btncetak = '' + ''; $(btncetak).insertAfter('button.confirm-multiple'); $('button.t-c-s').click(function() { var html = ''; var id = ''; var labelid = []; $('input.order_checkbox').each(function () { var checked = (this.checked ? $(this).val() : ''); id += checked; if (checked != '') { labelid.push($(this).parent().parent().prop('id').replace('order-', '')); } }); if (id == '') { var message_error = tokopedia.render_message('error', tokopedia.loc('ERROR_CHOOSE_ORDER')); tokopedia.alert($(this).text(), message_error); return false; } html += 'Cetak Slip Alamat'; html += css; html += '
Cetak