Skip to content

Instantly share code, notes, and snippets.

View neoighodaro's full-sized avatar
🏠
Working from home

Neo neoighodaro

🏠
Working from home
View GitHub Profile
@neoighodaro
neoighodaro / content.js
Created October 18, 2022 16:40
Remove the Signup Modal from Twitter.com when not signed in
// Let you browse Twitter while logged out without being annoyed
// by the scroll-blocking sign up dialog, or the bright blue sign up bottom banner
// We have to observe the entire document for mutations because it's a React app
// Each time a change is detected, we find any of the matching elements to remove/fix
const observer = new MutationObserver(() => {
// Remove blue signUp bar at bottom
const signUpBar = document.querySelector("[data-testid='BottomBar']");
if (signUpBar) signUpBar.remove()
@neoighodaro
neoighodaro / content.js
Created October 17, 2022 13:10
Enhanced Twitter: Originally by Xilantra
/*
Enhanced Twitter
@xilantra
https://arc.net/e/E7D0C27B-9A71-4DEB-B28C-20CF8092C241
https://github.com/Xilantra/enhanced-twitter
Last updated: September 20 2022
*/
const menuBtn = document.createElement("button");
const body = document.body;
@neoighodaro
neoighodaro / manifest.json
Last active October 16, 2022 18:23
All Black Youtube
{
"name": "All Black Youtube",
"description": "Pitch Black Youtube",
"version": "0.0.1",
"manifest_version": 3,
"content_scripts": [
{
"matches": ["*://*.extensions/*"],
"css": ["styles.css"]
}
#!/bin/bash
PLATFORM=iPhoneOS # iPhoneSimulator # iPhoneOS
HOST=arm-apple-darwin # i386-apple-darwin10 # arm-apple-darwin10
ARCH=arm64 # i386 # armv7s #armv7
SDK_VERSION=13.0
XCODE_ROOT=`xcode-select -print-path`
PLATFORM_PATH=$XCODE_ROOT/Platforms/$PLATFORM.platform/Developer
SDK_PATH=$PLATFORM_PATH/SDKs/$PLATFORM$SDK_VERSION.sdk
@neoighodaro
neoighodaro / open_shortcut.m
Created April 5, 2020 10:46 — forked from CPDigitalDarkroom/open_shortcut.m
Open an app shortcut programmatically
- (void)openShortcut:(SBSApplicationShortcutItem *)shortcutItem {
UIHandleApplicationShortcutAction *openAction = [[UIHandleApplicationShortcutAction alloc] initWithSBSShortcutItem:shortcutItem];
NSDictionary *activationOptions = @{
@"__ActivateSuspended" : [NSNumber numberWithBool:(shortcutItem.activationMode == 1)],
@"__Actions": @[
openAction
],
@"__PromptUnlockDevice" : [NSNumber numberWithBool:YES],
import styled from 'styled-components';
const TagComponent = styled.div`
background-color: #44014C;
width: 300px;
min-height: 200px;
margin: 30px auto;
box-sizing: border-box;
`;
class ToDoApp extends React.Component {
// ...
render() {
return (
<TodoComponent>
<h2>ToDo</h2>
<div>
<Input onChange={this.handleChange} />
<p>{this.state.error}</p>
import React, { Component } from "react";
// Import the styles
import {styles} from "./styles";
class ToDoApp extends React.Component {
// ...
render() {
return (
const TodoComponent = {
width: "300px",
margin: "30px auto",
backgroundColor: "#44014C",
minHeight: "200px",
boxSizing: "border-box"
}
const Header = {
const TodoComponent = {
width: "300px",
margin: "30px auto",
backgroundColor: "#44014C",
minHeight: "200px",
boxSizing: "border-box"
}
const Header = {