Skip to content

Instantly share code, notes, and snippets.

@Snuupy
Last active December 15, 2019 10:08
Show Gist options
  • Save Snuupy/68879aa1f436dfd60f2ed63b64d46152 to your computer and use it in GitHub Desktop.
Save Snuupy/68879aa1f436dfd60f2ed63b64d46152 to your computer and use it in GitHub Desktop.
Getting TheLounge to work with Kiwi Browser on Android
npm i && NODE_ENV=production npm run-script build && npm link
// https://stackoverflow.com/questions/48463483/what-causes-a-failed-to-execute-fetch-on-serviceworkerglobalscope-only-if
if (e.request.cache === 'only-if-cached' && e.request.mode !== 'same-origin') {
return;
}
async function networkOrCache(event) {
try {
let response = await fetch(event.request, {});
clear cache in kiwi browser
// to do: fix formatting
/* remove channel padding */
.channel-list-item {
padding: 0px;
}
/* AMOLED black */
:root {
--highlight-bg-color: #000000;
--window-bg-color: #000000;
}
#chat .userlist .search {
background-color: #000000;
}
/* hide thelounge logo */
#sidebar > div > div.logo-container > img.logo-inverted {
display: none;
}
/* remove padding for channel switcher */
#jump-to-container .channel-list-item[data-type=lobby] {
padding: 0px;
}
/* for mobile */
#chat .msg {
font-size: 13px;
}
#jump-to-container .jump-to-dialog {
background: #1b1b1b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment