This file contains hidden or 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
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
const int LEFT = 4; | |
const int UP = 2; | |
const int RIGHT = 6; | |
const int DOWN = 8; |
This file contains hidden or 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
#include <ApplicationServices/ApplicationServices.h> | |
int main() { | |
// get pointer location | |
CGEventRef ourEvent = CGEventCreate(NULL); | |
CGPoint point = CGEventGetLocation(ourEvent); | |
CFRelease(ourEvent); | |
// button down | |
CGEventRef click1_down = CGEventCreateMouseEvent( |
This file contains hidden or 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
:root { | |
--bar-height: 23px; | |
--bar-height-orig: 56px; | |
} | |
ytd-app[is-watch-page=""] #player-theater-container { | |
min-height: calc(100vh - var(--bar-height)) !important; | |
} | |
ytd-app[is-watch-page=""]:not([masthead-hidden_=""]) #page-manager { | |
margin-top: var(--bar-height) !important; | |
} |
This file contains hidden or 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
// ==UserScript== | |
// @name Twitter instant block | |
// @description Block people on the hell website with one less click | |
// @include https://twitter.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// using mozilla sample code | |
// https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver |
This file contains hidden or 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
// ==UserScript== | |
// @name Disable YouTube Autoplay | |
// @version 1 | |
// @grant none | |
// @include https://*youtube.com/* | |
// @run-at document-idle | |
// ==/UserScript== | |
function fix() { | |
var a = document.getElementById("toggle"); |
This file contains hidden or 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
// ==UserScript== | |
// @name Twitter Lite instant block | |
// @description Block people on the hell website with one less click | |
// @include https://mobile.twitter.com/* | |
// @version 1 | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== | |
// using mozilla sample code |
This file contains hidden or 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
/* sync animation transitions */ | |
.tab, .favicon, .twisty, .contextual-identity-marker, .newtab-button-box, .label { | |
transition: all 500ms ease-in-out 400ms, background-color 200ms ease-in-out !important; | |
} | |
html:hover .tab, html:hover .favicon, html:hover .twisty, html:hover .newtab-button-box, html:hover .label { | |
transition: all 400ms ease-in-out, background-color 200ms ease-in-out !important; | |
} | |
html:not(:hover) .tab { | |
margin-left: 0 !important; |
This file contains hidden or 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
// ==UserScript== | |
// @name No | |
// @include *twitter.com/* | |
// @run-at document-start | |
// ==/UserScript== | |
function no() { | |
var x = window.location; | |
if (x == "https://twitter.com/home" || x == "https://twitter.com/") { | |
x.replace("https://twitter.com/dril/status/922321981"); |
This file contains hidden or 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
// ==UserScript== | |
// @name Discourse Enhancer | |
// @description A strange game. The only winning move is not to play. | |
// @version 1 | |
// @run-at document-start | |
// @grant none | |
// @include *://*reddit.com/r/all/ | |
// @include *://news.ycombinator.com/item* |
This file contains hidden or 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
on run {input, parameters} | |
-- handle opening multiple files | |
set str to "" | |
repeat with i from 1 to length of input | |
set cur to item i of input | |
set str to str & " " & quote & POSIX path of cur & quote | |
end repeat | |
tell application "iTerm" | |
create window with profile "fast" -- use a profile with a lighter shell |
OlderNewer