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
| javascript:(function(){var duration=()=>{var dr=document.getElementsByClassName('ytp-time-duration')[0].textContent.split(':');var dur=parseInt(dr[0])*60+parseInt(dr[1]-2);return dur*1000};var ke=(keyCode)=>document.body.dispatchEvent(new KeyboardEvent('keydown',{bubbles:true,cancelable:true,keyCode}));var lop=()=>ke(48);setInterval(lop,duration());ke(32)})() |
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 hn-darkened.js | |
| // @version 1 | |
| // @match https://news.ycombinator.com/* | |
| // ==/UserScript== | |
| function fnColSiz(c, s) { | |
| return (el) => { | |
| if (c) el.style.color = c; | |
| if (s) el.style['font-size'] = s; |
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 google-darkened.js | |
| // @version 1 | |
| // @grant none | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
| // @match *://*.google.com/* | |
| // ==/UserScript== | |
| $('body').css('background-color', 'black'); | |
| $('body').css('color', '#999'); |
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 flutter-dev-darkened.js | |
| // @version 1 | |
| // @grant none | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
| // @match *://flutter.dev/* | |
| // @match *://dart.dev/* | |
| // ==/UserScript== | |
| $('body').css('background-color', 'black'); |
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
| #!/bin/bash | |
| # Cleanup current MySQL installation | |
| #apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-* | |
| #rm -rf /etc/mysql /var/lib/mysql | |
| #apt-get autoremove | |
| #apt-get autoclean | |
| if [ "$1" == "-d" ]; then | |
| # Dependencies might be different on other systems... |
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 wikipedia-somewhat-dark.js | |
| // @version 1 | |
| // @grant none | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
| // @match *://*.wikipedia.org/* | |
| // ==/UserScript== | |
| $('body').css('background-color', '#555'); | |
| $('a').css('color', '#498ac4'); |
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
| javascript:(function(){ window.imageToBase64 = (e) => { var f=e.files[0], r=new FileReader(); r.onloadend = () => console.log(r.result); r.readAsDataURL(f); }; document.querySelector('body').insertAdjacentHTML('afterbegin', '<input type="file" onchange="imageToBase64(this)" />') })() |
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
| javascript:(function(){var%20lc=window.location;if(`${lc}`.startsWith('https://sailsjs.com')){window.location=`${lc}`.replace('//sailsjs.com','//0.12.sailsjs.com');}})() |
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
| CREATE DEFINER=`root`@`localhost` FUNCTION `mydb`.`gyoize`(str VARCHAR(255)) RETURNS varchar(2) CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci | |
| BEGIN | |
| DECLARE gyo VARCHAR(2); | |
| DECLARE kata VARCHAR(128); | |
| DECLARE gyos VARCHAR(128); | |
| DECLARE gyoPos INT; | |
| SET kata = 'アイウエオヴカキクケコガギグゲゴサシスセソザジズゼゾタチツテトダヂヅデドナニヌネノハヒフヘホバビブベボパピプペポマミムメモヤユヨラリルレロワヲン'; | |
| SET gyos = 'アアアアアアカカカカカカカカカカササササササササササタタタタタタタタタタナナナナナハハハハハハハハハハハハハハハマママママヤヤヤラララララワワワ'; | |
| SET gyo = SUBSTRING(str, 1, 1); | |
| SET gyoPos = POSITION(gyo IN kata); |
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
| #!/bin/bash | |
| print_if_same () { while read -r -a arr; do if [ "${arr[0]}" == "${arr[1]}" ]; then echo "${arr[0]}"; fi; done ; } | |
| yes | awk '{print NR}' | factor | IFS=': ' print_if_same |