A video is available that introduces Arch Linux and covers OS configuration steps if you would prefer that format:
Arch Linux: Base Install in Virtual Machine
I used the following references to learn how to install Arch Linux in a virtual machine:
var myState = { | |
counter: 0, | |
greeted: false, | |
}; | |
browser.tabs.onCreated.addListener(() => { | |
myState.counter = 0; | |
}); | |
browser.runtime.onMessage.addListener((message) => { |
document.addEventListener('DOMContentLoaded', () => { | |
document.getElementById('play').addEventListener('click', async () => { | |
const player = new Audio(); | |
document.body.append(player); | |
player.src = browser.runtime.getURL('pop.flac'); | |
document.getElementById('output').value = 'playing'; | |
try { | |
await player.play(); | |
document.getElementById('output').value = 'played!'; |
async function download(album) { | |
const albums = document.querySelectorAll('.order-tracklisting .table'); | |
const target = albums[album]; | |
const downloads = target.querySelectorAll('.btn.tracks'); | |
function wait(time) { | |
return new Promise((resolve) => setTimeout(resolve, time)); | |
} | |
for (const button of downloads) { | |
button.click(); | |
console.log('download'); |
// ==UserScript== | |
// @name Lichtensteien | |
// @namespace Violentmonkey Scripts | |
// @include http://* | |
// @include https://* | |
// @include * | |
// @grant none | |
// @version 1.0 | |
// @author Martin Giger | |
// @description 11/10/2020, 1:40:47 PM |
'use strict'; | |
const {messageValue, reply, random, isBot} = require('../server/tools'); | |
const config = require('../config'); | |
require('dotenv').config(); | |
var CLIENT_ID = config.twitch.TWITCH_CLIENT_ID; | |
var CLIENT_SECRET = config.twitchTWITCH_SECRET; | |
var GET_TOKEN = config.twitch.TOKENURL; | |
var GET_STREAM = config.twitch.TWITCH_GET_USER_URL; | |
var TOKEN = config.twitch.TWITCH_CURRENT_TOKEN; |
function party() { | |
const colors = Array.from(document.styleSheets).find(stylesheet => | |
stylesheet.href.endsWith("colors.css") | |
).cssRules[0].style; | |
const colorVariables = Object.values(colors); | |
const sourceStyles = document.documentElement.style.getPropertyValue( | |
colorVariables[0] | |
) | |
? document.documentElement.style | |
: colors; |
A video is available that introduces Arch Linux and covers OS configuration steps if you would prefer that format:
Arch Linux: Base Install in Virtual Machine
I used the following references to learn how to install Arch Linux in a virtual machine:
export const STATE_SEARCHING = "STATE_SEARCHING" | |
export const STATE_TOKENIZING_HASHTAG = "STATE_TOKENIZING_HASHTAG" | |
export const STATE_TOKENIZING_MENTION = "STATE_TOKENIZING_MENTION" | |
export const PREFIX_HASHTAG = "#" | |
export const PREFIX_MENTION = "@" | |
export const tokenize = function(text) { | |
let characters = [...text] | |
let state = STATE_SEARCHING | |
let tokens = [] |
export const STATE_IDENTIFYING = "STATE_IDENTIFYING" | |
export const STATE_TOKENIZING_NORMAL = "STATE_TOKENIZING_NORMAL" | |
export const STATE_TOKENIZING_SPECIAL = "STATE_TOKENIZING_SPECIAL" | |
export const TOKEN_SEPARATOR = "/" | |
export const TOKEN_SPECIAL_PREFIX = "{" | |
export const TOKEN_SPECIAL_SUFFIX = "}" | |
export const TOKEN_TYPE_NORMAL = "normal" | |
export const TOKEN_TYPE_SPECIAL = "special" |
if(ctrlPressed && button === 1) { | |
let currentIndex = 0 | |
for (let i = 0; i < this.groupState.metaWindows.length; i++) { | |
if(this.groupState.metaWindows[i] === this.groupState.lastFocused) { | |
currentIndex = i | |
} | |
} | |
if(currentIndex === this.groupState.metaWindows.length - 1) { | |
currentIndex = 0 | |
} else { |