Skip to content

Instantly share code, notes, and snippets.

View saschanaz's full-sized avatar
🏢
Working from office

Kagami Sascha Rosylight saschanaz

🏢
Working from office
View GitHub Profile
@saschanaz
saschanaz / mastodon-redirector.user.js
Last active March 31, 2023 19:12
Mastodon redirector (Click the "Raw" button)
// ==UserScript==
// @name Mastodon Redirector
// @namespace http://saschanaz.github.io/
// @version 0.1.11
// @description Redirects to your home server when applicable
// @author Kagami Rosylight
// @match https://*/*
// @icon https://mastodon.social/favicon.ico
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
/*
_______
/ \
.==. .==.
(( ))==(( ))
/ "==" "=="\
/____|| || ||___\
________ ____ ________ ___ ___
| ___ \ / \ | ___ \ | | / /
| | \ \ / /\ \ | | \ \| |_/ /
@saschanaz
saschanaz / mute.user.js
Last active July 8, 2020 06:36
로드 오브 히어로즈 유저스크립트
// ==UserScript==
// @name 로드 오브 히어로즈 포럼 유저 뮤트
// @namespace http://saschanaz.github.io/
// @version 0.3
// @description 맘에 안 드는 유저를 포럼에서 뮤트합니다
// @author Kagami Sascha Rosylight
// @match https://community-ko.lordofheroes.com/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand
@saschanaz
saschanaz / no-arknights.user.js
Last active January 21, 2020 10:11
no-arknights
// ==UserScript==
// @name No Arknights on ANIPLUSTV
// @namespace https://saschanaz.github.io/
// @version 0.2
// @description No Arknights on ANIPLUSTV
// @author You
// @match http://www.aniplustv.com/*
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
html, body {
margin: 0;
height: 100%;
}
#textarea {
@saschanaz
saschanaz / datatransfer-files.user.js
Last active October 20, 2018 05:37
DataTransafer.files polyfill
// ==UserScript==
// @name DataTransfer files polyfill
// @namespace http://saschanaz.github.io/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://pawoo.net/web/*
// @grant none
// ==/UserScript==
@saschanaz
saschanaz / pawoo.user.js
Created October 18, 2018 03:11
Pawoo flexbox workaround
// ==UserScript==
// @name Pawoo flexbox workaround for Edge 18
// @namespace http://saschanaz.github.io/
// @version 0.1
// @description Workaround Edge 18 flexbox bug
// @author Kagami Sascha Rosylight
// @match https://pawoo.net/web/*
// @grant none
// ==/UserScript==
@saschanaz
saschanaz / skip-skipper.user.js
Created September 1, 2018 10:34
Laftel skip-skipper
// ==UserScript==
// @name Laftel skip-skipper
// @namespace http://saschanaz.github.io/
// @version 0.1
// @description Do not show the skip buttons
// @author Kagami Sascha Rosylight
// @match https://laftel.net/player/*
// @grant none
// ==/UserScript==
@saschanaz
saschanaz / twitter-force-pwa.user.js
Last active October 15, 2018 00:21
twitter-force-pwa
// ==UserScript==
// @name Force Twitter PWA
// @namespace https://saschanaz.github.io/
// @version 0.4.1
// @description PWA is the future
// @author Kagami Sascha Rosylight
// @match https://twitter.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@saschanaz
saschanaz / append.js
Last active January 24, 2018 13:30
macOS append mode test
var fs = require("fs");
console.log(process.version);
var f = fs.openSync("testfile", "w");
fs.writeSync(f, "a=1\nb=2\n");
fs.closeSync(f);
f = fs.openSync("testfile", "a");
fs.writeSync(f, new Uint8Array([99, 61, 51]), 0, 3, 8);
fs.closeSync(f);
var result = fs.readFileSync("testfile", { encoding: "utf-8" });
var success = result === "a=1\nb=2\nc=3";