Skip to content

Instantly share code, notes, and snippets.

View PhilipFlyvholm's full-sized avatar
🔥

Philip Flyvholm PhilipFlyvholm

🔥
View GitHub Profile
@PhilipFlyvholm
PhilipFlyvholm / content.js
Created December 11, 2022 21:52
CSS Variable modifier boost for Arc
(function () {
let enabled = document.cookie.split(";").find((v, _) => v.trim().split("=")[0] === "variable_checker_enabled" && v.trim().split("=")[1] === 'true')
let cssVars = null
let crossOrigin = []
let modified = []
let host = window.location.hostname.startsWith('www.') ? window.location.hostname.substring(4) : window.location.hostname
window.addEventListener("keypress", (e) => {
if (e.key !== 'V' || !e.shiftKey || !e.ctrlKey) return
if (enabled) disable()
else enable()
@PhilipFlyvholm
PhilipFlyvholm / rssFeed.js
Last active December 23, 2018 13:15
Example of RSS feed as JSON in React Native
import React from 'react';
import {StyleSheet, View, Text} from 'react-native';
export class RSSFeed extends React.Component{
constructor(props) {
super(props);
this.state = {
rss: []
};