Skip to content

Instantly share code, notes, and snippets.

Shilo Shilo

Block or report user

Report or block Shilo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Shilo / _list_folder_content_to_cmd.bat
Last active Jul 26, 2018
Command prompt batch files to list folder and file names of current folder.
View _list_folder_content_to_cmd.bat
@echo off
dir /a /b
Shilo / youtube_big_theater_mode_injection.js
Last active Jul 13, 2018 "big theater mode" injection. Gives the video full height when in theater mode.
View youtube_big_theater_mode_injection.js
(function() {
var coverNavBar = true;
var css = `
ytd-watch:not([fullscreen])[theater] #player.ytd-watch {
height: ` + (coverNavBar?'':'calc(') + '100vh' + (coverNavBar?'':' - 56px)') + ` !important;
max-height: none !important;` + (coverNavBar?`
position: relative;
margin-top: -56px;
z-index: 9999;
Shilo / youtube_fullscreen_injection.js
Last active Jul 13, 2018 fullscreen injection to put the video in fullscreen. (Scrubber disabled due to issues with the fullscreen mode)
View youtube_fullscreen_injection.js
var sizeButton = document.getElementsByClassName("ytp-size-button")[0];
var sizeButtonTitle = sizeButton.getAttribute('title');
var shouldDefaultView = sizeButtonTitle != null && sizeButtonTitle.toLowerCase() == 'default view';
if (shouldDefaultView) {;
setTimeout(function() {
var playButton = document.getElementsByClassName("ytp-play-button")[0];
Shilo / quietube_fullscreen_injection.js
Created Jul 11, 2018 fullscreen injection to put the video in fullscreen.
View quietube_fullscreen_injection.js
(function() {
var css = `
html, body {
height: 100%;
body {
overflow: hidden;
Shilo / css_injection.js
Last active Jul 11, 2018
One Line Javascript CSS Injection.
View css_injection.js
(function() { var css = `body{background-color:black;}`; var cssDiv = document.createElement('div'); cssDiv.innerHTML = '&shy;<style>' + css + '</style>'; document.body.appendChild(cssDiv.childNodes[1]); })();
Shilo / ping.js
Created Feb 26, 2018
Vylocity snippet to track ping/latency.
View ping.js
send data
Send back
Shilo / open_world_warping.js
Created Feb 21, 2018
VyScript to implement open world warping. When colliding with the map edge, it will automatically warp to the next map. (Vylocity engine:
View open_world_warping.js
if (pB == Map.void)
var warpMap = null
var warpX = this.xPos;
var warpY = this.yPos;
var warpMapCoords = this.get_outside_map_coords(this.mapName)
Shilo / map_void_collision.js
Last active Feb 21, 2018
VyScript to detect what side of map void the player bumps into. (Vylocity engine:
View map_void_collision.js
if (pB == Map.void)
if (this.xPos == -this.xOrigin)
World.log("bumped against left void")
else if (this.yPos == -this.yOrigin)
World.log("bumped against top void")
else if (this.xPos == Map.getMapSize(this.mapName).xPos-this.xOrigin-this.width)
World.log("bumped against right void")
Shilo / gist:b3f581ef937dfc22466ca579176492d2
Created Jan 4, 2018 — forked from ozh/gist:4131243
Create dot files/directories (ie .file) on Windows
View gist:b3f581ef937dfc22466ca579176492d2

#How to create a .file or .folder on Windows

There are several ways

1. Rename

  • Create file.txt
  • Rename to .file., the last dot will be dropped, you'll have .file

Works the same with a file or a directory.

Shilo / spoilerAlert.plugin.js
Last active Dec 18, 2017 — forked from NanoAi/spoilerAlert.plugin.js
View spoilerAlert.plugin.js
@if (@_jscript)
// _jscrupt stolen (not really) from noodlebox#0155!
// Offer to self-install for clueless users that try to run this directly.
var shell = WScript.CreateObject("WScript.Shell");
var fs = new ActiveXObject("Scripting.FileSystemObject");
var pathPlugins = shell.ExpandEnvironmentStrings("%APPDATA%\\BetterDiscord\\plugins");
var pathSelf = WScript.ScriptFullName;
You can’t perform that action at this time.