Skip to content

Instantly share code, notes, and snippets.

@oksuz
Created March 25, 2021 15:59
Show Gist options
  • Save oksuz/291391a84eff6ceb52023f31b912b489 to your computer and use it in GitHub Desktop.
Save oksuz/291391a84eff6ceb52023f31b912b489 to your computer and use it in GitHub Desktop.
{
"name": "Yemeksepeti Webgüvercin Printable",
"description": "Injects printable css into webguvercin webpage in order to print order trough thermal printer",
"version": "1.0",
"permissions": ["activeTab"],
"manifest_version": 3,
"content_scripts": [
{
"matches": ["https://siparistakip.yemeksepeti.com/*"],
"css": ["print.css"]
}
]
}
@media print {
body {
margin: 0 !important;
padding: 0 !important;
font-weight: bold;
color: black;
}
table.order-detail-table tbody tr td {
font-size: 15px !important;
}
table.order-detail-table thead th:nth-child(4) {
display: none;
}
table.order-detail-table tbody td:nth-child(4) {
display: none;
}
table.order-detail-table tbody tr:last-child td {
font-size: 20px !important;
}
.order-list-table {
margin: 0 !important;
padding: 0 !important;
}
div.row {
padding: 0 !important;
margin: 0 !important;
}
div[class^=col-] {
margin: 0 !important;
padding: 0 !important;
}
.container {
padding: 0 !important;
margin: 0 !important;
}
.alert,
.cookie-alert,
.page-header-top,
.last-signal,
.restaurant-container,
.page-footer,
.page-header,
.restaurant-control {
display: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment