Skip to content

Instantly share code, notes, and snippets.


Dominik Pschenitschni dpschen

View GitHub Profile
dpschen / font-smoothing-on-high-dpi-media.css
Last active Dec 7, 2019 — forked from marcedwards/high-dpi-media.css
Use more beautiful font smoothing on high dpi media devices
View font-smoothing-on-high-dpi-media.css
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
dpschen /
Last active Feb 22, 2021
Hacky way to export synced tabs of Firefox Sync / Weave and import them in OneTab

Hacky way to export synced tabs of Firefox Sync / Weave and import them in OneTab


I am guilty beeing a tab messy and was searching for a while for a good solution to move my open tabs to OneTab. Especially on mobile the tab situation was extremely bad. When I realized that I had over 3000 (!!) tabs on my iPhone opened I acknowledge that I got to do something.

First I tried to just open the tabs in Firefox. When you rightclick a device on the "Synced Tabs" sidebar there is an "Open all tabs" entry. For 3000 tabs already my computer was already overloaded when opening them… Closing every other open program and removing every browser extension other then blockers also didn't do the trick. After some time the tabs seemed to be in an open state, but Firefox was not really responding. I tried closing the tabs via OneTab and also to save them all as bookmark via Bookmarks -> Bookmark all Tabs but that also didn't work.

dpschen /
Last active Feb 23, 2021
Migrate Unity / Unreal Project to Git LFS

Migrate Unity / Unreal Project to Git LFS


  • If you convert to LFS for an existing repository, you will change the history, so the SHA of changed commits changes!!
  • That is fine for archiving purposes, as long as it is only about looking up the history.
  • All historic states should still work, but you can no longer reference them via SHA.
  • You should not use bfg-repo-cleaner because it's not as well supported and maintained anymore compared to git lfs migrate


dpschen / findDuplicatesInOnetab.js
Last active Mar 1, 2021
Find duplicates links in OneTab
View findDuplicatesInOnetab.js
(function findDuplicatesInOnetab() {
const isOneTab = document
?.innerHTML.includes("OneTab"); // cheap OneTab check
if (!isOneTab) {
alert("Run this script in a OneTab tab");
const getOneTabLinks = () => [
dpschen / RemovePageOnetab.js
Last active Mar 1, 2021
This is a simple script to find and remove entries from OnTab
View RemovePageOnetab.js
function triggerMouseEvent(node, eventType) {
const clickEvent = document.createEvent('MouseEvents');
clickEvent.initEvent(eventType, true, true);
// This is a helper that you can use to remove duplicate entries on a OneTab page.
// Use like this:
// const url = "";
// removeDuplicatePages(url)