Skip to content

Instantly share code, notes, and snippets.

View Saoneth's full-sized avatar

Rafał Stańczyk Saoneth

View GitHub Profile
@Saoneth
Saoneth / mal.js
Last active August 29, 2015 14:23
var s = document.createElement('style');
s.innerHTML = '@import url(https://googledrive.com/host/0BxjwQr0BBXs-aDYxM2JlaFM2bnM);';
s.innerHTML += '#contentWrapper table tr { background-position: center; display: block; padding-bottom: 10px; color: white; float: left; position: relative; width: 220px; height: 300px; margin: 11px; border-radius: 13px; box-shadow: 0px 0px 11px 2px rgb(13, 13, 13) inset; }'
s.innerHTML += '#content table a { position: absolute; left: 0; top: 0; width: 100%; height: 100% }';
s.innerHTML += '#content table a span { position: absolute; left: 0; bottom: 30px; width: 100%; padding: 10px 0; text-align: center; color: white; background-color: rgba(0, 0, 0, 0.66) }';
s.innerHTML += '#content table a.button_add { top: 20px; left: initial; bottom: initial; right: 20px; width: initial; height: initial; padding: 5px 10px; border-radius: 8px }';
s.innerHTML += '#contentWrapper table tr:not([id^="more"]) { display: none }';
s.innerHTML += '#content table tr td:nth-child(2) span { position: abs
// ==UserScript==
// @name Bato.to Preload
// @namespace http://saoneth.pl/
// @version 0.1
// @description All pages on one site
// @author Saoneth
// @match http://bato.to/reader
// @grant none
// ==/UserScript==
/* jshint -W097 */
// ==UserScript==
// @name Batoto One Page Reader
// @namespace http://saoneth.pl/
// @version 0.9
// @description try to take over the world!
// @author Saoneth
// @match http://bato.to/reader
// @grant none
// @updateURL https://gist.github.com/Saoneth/2eb44537a2d1e5098f25234328245ded/raw/batoto.user.js
// @run-at document-start
@Saoneth
Saoneth / dl.bat
Last active June 9, 2017 15:50
Download torrent file by file
FOR /L %%G IN (%2,1,%3) DO aria2c --peer-id-prefix="-UT2210-" --user-agent="uTorrent/2210(25110)" --file-allocation=none --seed-time=0 --bt-tracker=udp://tracker.openbittorrent.com:80/announce --select-file=%%G %1
// ==UserScript==
// @name Bato.to Mobile Theme
// @namespace http://saoneth.pl/
// @version 0.3
// @description try to take over the world!
// @author Saoneth
// @match http://bato.to/*
// @match https://bato.to/*
// @grant none
// @updateURL https://gist.github.com/Saoneth/fee6e837ec2fd97fccf343184fa6e0dc/raw/batoto_mobile.user.js
// ==UserScript==
// @name KBogu Master
// @namespace http://saoneth.pl/
// @version 6.6.6.6
// @description try to take over the world of kbogu!
// @author Saoneth
// @match http://testy.kbogu.man.szczecin.pl/client/
// @grant none
// ==/UserScript==
@Saoneth
Saoneth / generate.js
Last active June 9, 2017 15:47
Static Google Map
#!/usr/bin/env phantomjs
var page = require('webpage').create(),
system = require('system'),
args = system.args;
if (args.length !== 4) {
console.log('Usage: ' + args[0] + ' ID WIDTHxHEIGHT LOCATION');
phantom.exit();
}
@Saoneth
Saoneth / watch.bat
Created June 2, 2017 22:06
Watches directory for .url files and launches them with firefox
@echo off
:s
for %%a in (*.url) do (
"C:\Program Files\Firefox Developer Edition\firefox.exe" "%%a"
del "%%a"
)
ping 127.0.0.1 -n 2 > nul
goto s
pause
@Saoneth
Saoneth / puttyShortcuts.au3
Created October 6, 2017 21:34
Paste using alt+v in putty
Func ActiveProcess()
Local $Processlist = ProcessList()
Local $Pid = WinGetProcess(WinGetHandle("[active]"))
For $i = 1 To $Processlist[0][0]
If $Processlist[$i][1] = $Pid Then Return $Processlist[$i][0]
Next
EndFunc
Func PuttyPaste()
If ActiveProcess() = "putty.exe" Then Send("{LSHIFT down}{INSERT}{LSHIFT up}")
EndFunc
// ==UserScript==
// @name Steam: convert ARS currency to another
// @namespace http://tampermonkey.net/
// @version 0.9
// @author Saoneth
// @match https://store.steampowered.com/*
// @match https://steamcommunity.com/*
// @grant GM.xmlHttpRequest
// @grant GM.setValue
// @grant GM.getValue