Skip to content

Instantly share code, notes, and snippets.

View CanYouJustWorkPlease's full-sized avatar

CanYouJustWorkPlease

View GitHub Profile
;--------------------------------------------------------
; script speed optimizations
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
javascript:(function(d,b,s){
s=d.head.appendChild(d.createElement("style"));
d.addEventListener('keypress', function(e){
// Press "+" to increase brightness
if (e.key=='+'&&b<100)
b+=50;
// Press "-" to decrease brightness
else if (e.key=='-'&&b>50)
b-=50;
s.innerText = ".img,img{-webkit-filter:brightness("+b+"%)}"
@CanYouJustWorkPlease
CanYouJustWorkPlease / Download different Chrome standalone releases.bat
Created November 30, 2020 11:04
Batch script to download different Chrome standalone releases
@echo off
set date_and_time=#1_%date:~-10,2%-%date:~3,2%-%date:~-4,4%_%time:~0,2%.%time:~3,2%.%time:~6,2%.#2
md "%USERPROFILE%\Chrome_old_versions\"
set dirct="%USERPROFILE%\Chrome_old_versions\Chrome_%date:~-10,2%-%date:~3,2%-%date:~-4,4%_%time:~0,2%.%time:~3,2%.%time:~6,2%"
md "%dirct%"
cd "%dirct%"
curl --output-dir %dirct% https://dl.google.com/chrome/install/{ChromeStandaloneSetup64}.{exe} -o %date_and_time%
curl --output-dir %dirct% https://dl.google.com/chrome/install/beta/{ChromeBetaStandaloneSetup64}.{exe} -o %date_and_time%
curl --output-dir %dirct% https://dl.google.com/chrome/install/dev/{ChromeDevStandaloneSetup64}.{exe} -o %date_and_time%
curl --output-dir %dirct% https://dl.google.com/chrome/install/{ChromeStandaloneSetup}.{exe} -o %date_and_time%
@CanYouJustWorkPlease
CanYouJustWorkPlease / Force Vertical Scrollbar on All Pages.user.js
Created November 30, 2020 10:38
Forces vertical scrollbar on all pages
// ==UserScript==
// @name Force Vertical Scrollbar on All Pages
// @author CanYouJustWorkPlease
// @include *
// ==/UserScript==
(function(d){d.head.appendChild(d.createElement('style')).innerText='html{overflow-y:scroll;}'}(document))();
@CanYouJustWorkPlease
CanYouJustWorkPlease / Image dimmer by 50% for Youtube.user.js
Created November 30, 2020 10:35
Reduces image brightness by half on Youtube
// ==UserScript==
// @name Image dimmer by 50% for Youtube
// @author CanYouJustWorkPlease
// @description Reduces image brightness by half on Youtube
// @match http*://*.youtube.com/*
// ==/UserScript==
(function(d){d.head.appendChild(d.createElement('style')).innerText='#title,yt-formatted-string,#video-title,#subscribe-button,.img,img{-webkit-filter:brightness(50%)}'}(document))();
@CanYouJustWorkPlease
CanYouJustWorkPlease / Remove [edit], reference numbers and guidance panel from wikipedia.user.js
Last active November 30, 2020 10:28
Removes [edit], reference numbers and guidance panel from wikipedia
// ==UserScript==
// @name Remove [edit], reference numbers and guidance panel from wikipedia
// @author CanYouJustWorkPlease
// @include http*://*.wikipedia.org*
// @run-at document-start
// ==/UserScript==
(function(d) {
d.head.appendChild(d.createElement('style')).innerText = '#mw-content-text > div > table, div#toc.toc, .reference, .mw-editsection{display:none}';
}(document))();
@CanYouJustWorkPlease
CanYouJustWorkPlease / Force Horizontal Scrollbar on All Pages.user.js
Created November 30, 2020 10:23
Forces horizontal scrollbar on all pages
// ==UserScript==
// @name Force Horizontal Scrollbar on All Pages
// @author CanYouJustWorkPlease
// @include *
// ==/UserScript==
(function(d){d.head.appendChild(d.createElement('style')).innerText='html{overflow-x:scroll;}'}(document))();
// ==UserScript==
// @name Warn before closing each tab
// @author CanYouJustWorkPlease
// @version 0.1
// @match *
// @grant none
// ==/UserScript==
window.onbeforeunload = function() {
@CanYouJustWorkPlease
CanYouJustWorkPlease / Youtube time_continue redirect.user.js
Created November 30, 2020 10:17
Removes the time_continue parameter from the URL
// ==UserScript==
// @name Youtube time_continue redirect
// @author CanYouJustWorkPlease
// @description Removes the time_continue parameter from the URL
// @run-at document-start
// @icon https://www.youtube.com/favicon.ico
// @include https://*youtube.com/*
(function (){
// ==UserScript==
// @name Hide Youtube left menu (sidebar)
// @author CanYouJustWorkPlease
// @version 0.1
// @exclude https://*.youtube.com/watch?v=*
// @match https://*.youtube.com/*
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==