Skip to content

Instantly share code, notes, and snippets.

View CobreDev's full-sized avatar
:octocat:
Trying to make iOS tweaks

Cooper CobreDev

:octocat:
Trying to make iOS tweaks
View GitHub Profile
@CobreDev
CobreDev / style.css
Created April 5, 2023 02:17
Dynamic Twitter for Arc, based off your Space theme
* {
color: var(--arc-palette-foregroundPrimary) !important;
}
body {
background: var(--arc-palette-background) !important;
}
[data-testid="primaryColumn"] {
background: var(--arc-palette-background) !important;
@CobreDev
CobreDev / M4Artwork.sh
Created January 6, 2022 02:05
A script to convert cover artwork on *.m4a files to be compatible with Rockbox. Use at your own risk
#!/bin/bash
clear
# Finds all m4a files, and loops through them while assigning the file name to "$f"
find . -type f -name '*.m4a' -exec sh -c '
for f do
echo "$f"
@CobreDev
CobreDev / Injector.js
Last active November 8, 2021 14:46
Injects js into certain websites
if( window.location['pathname'] === '/StudentFunctions/Interface/acellus_engine.html') {
// if the "top-navbar acellus-logo" class is present set theme to #4D6F9D
if (document.getElementsByClassName("top-navbar acellus-logo").length){
$('head').append($('<meta name="theme-color" content="#4D6F9D">'))
}
// if the "top-navbar exam" class is present set theme to #98CD88
if (document.getElementsByClassName("top-navbar exam").length){
$('head').append($('<meta name="theme-color" content="#98CD88">'))
}
// if the "top-navbar review" class is present set theme to #85C4E6
# Put in root directory of music
# Extracts embedded artwork and makes them 300x300 jpgs.
# "$f" = mp3 file name (./Ahrix - Nova.mp3)
# "${f/%mp3/jpg}" = image name (./Ahrix - Nova.jpg)
rm ._*
# rm *.jpg
# Finds all the mp3 files in the current folder and list them to "f" variable