This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import sys | |
import webbrowser | |
import json | |
from urllib.parse import urlparse, unquote, parse_qs | |
vndurl = sys.argv[1].replace('vnd.youtube', 'https') | |
if vndurl.startswith('https://www.youtu') or vndurl.startswith('https://youtu'): | |
webbrowser.open(vndurl) | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from configparser import ConfigParser | |
import json | |
old = Path('locale') | |
new = Path('_locales') | |
class FakeSecHead: | |
def __init__(self, fp): | |
self.fp = fp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import keyboard | |
import tkinter as tk | |
import urllib.parse | |
import webbrowser | |
from threading import Thread | |
class Wnd: | |
def __init__(self, hotkey_state): |