This file contains 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 Rotate YouTube | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Key bindings to rotate youtube videos | |
// @author osuushi | |
// @match https://www.youtube.com/watch?* | |
// @icon https://www.google.com/s2/favicons?domain=youtube.com | |
// @grant GM_addStyle | |
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.5/mousetrap.min.js |
This file contains 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:void(function(){function spritzify(e,t,n){for(var i=6e4/n,l=e.split(" "),o=l.slice(0),r=0,a=0;a<l.length;a++)-1!=l[a].indexOf(".")&&(o[r]=l[a].replace(".","•")),(-1!=l[a].indexOf(",")||-1!=l[a].indexOf(":")||-1!=l[a].indexOf("-")||-1!=l[a].indexOf("(")||l[a].length>8)&&-1==l[a].indexOf(".")&&(o.splice(r+1,0,l[a]),o.splice(r+1,0,l[a]),r++,r++),(-1!=l[a].indexOf(".")||-1!=l[a].indexOf("!")||-1!=l[a].indexOf("?")||-1!=l[a].indexOf(":")||-1!=l[a].indexOf(";")||-1!=l[a].indexOf(")"))&&(o.splice(r+1,0,"."),o.splice(r+1,0,"."),o.splice(r+1,0,"."),r++,r++,r++),r++;l=o.slice(0);for(var a=0;a<l.length;a++)setTimeout(function(e){return function(){var n=pivot(l[e]);"undefined"!=typeof $?$(t).html(n):t.tagName?t.innerHTML=n:document.querySelector(t).innerHTML=n}}(a),i*a)}function pivot(e){var t=e.length;if(6>t){for(var n=1;e.length<22;)n>0?e+=".":e="."+e,n=-1*n;var i="",l="";t%2===0?(i=e.slice(0,e.length/2),l=e.slice(e.length/2,e.length)):(i=e.slice(0,e.length/2),l=e.slice(e.length/2,e.length));var o;o="<span c |
This file contains 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
p { | |
font-size:18px; | |
line-height:24px; | |
text-align: justify; | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAbCAYAAAC5rTVJAAAA3ElEQVQY0wXBwU3CABQA0Oe3IVgarFpDwYNH41GvLuMYzuQ4boBKiqGBptbCoQHf8+b19C4/vb44RWElmTdWEyJXaUuqMZFaO1zykxCJ2nDBJoghoxnjeCv6lHqEYSaaKdsc+4WoMz5nN/QLsZ7wcXjkrxSrCdvjE10hqjG+zmlz8ZOgSehTsQkcS7pEON6yD4VBGGa0Y6Ve2C/YPptrhH7h+vvgTi38lR7USmuhK9zrZZZCm7uy1VkKfSrVoRa6xJmdQisKA1qjlCj1Er/SjJhrDCrNlLhTK+3UGf/2IVZs3eANJQAAAABJRU5ErkJggg==); | |
background-size:100% 72px; | |
-webkit-background-clip:text; | |
-webkit-text-fill-color:transparent | |
} |
This file contains 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
p { | |
font-size:24px; | |
line-height:32px; | |
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAABgCAIAAAC46DQiAAAAYUlEQVQoz73SwQ3DIBAF0aetYDuAEtNJWoQKTAfOgcgS+M5pVnMafS0+X4JWHyAv4CbmdQDJICrthULfpYuckU52DshoUDd0KKuUZizc5zpJRlBpLxT6KtdFT3aO3H/wjx/oyySm/xnbdAAAAABJRU5ErkJggg==); | |
background-position-y:8px; | |
background-size:100% 128px; | |
-webkit-background-clip:text; | |
-webkit-text-fill-color:transparent | |
} |
This file contains 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
console.log("No."); |
This file contains 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
var points_total = 0; | |
var points_inside = 0; | |
var x, y, i; | |
while(true) { | |
for(i = 0; i < 10000; i++) { | |
x = Math.random(); | |
y = Math.random(); | |
points_inside += 2 + ~(x*x + y*y); | |
} | |
points_total += i; |
This file contains 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
p('This is a paragraph about some stuff').inject(document.body); | |
/* Lots of code later, but within the same scope */ | |
for(var p in pancakeList) { | |
flip(p); | |
} |
This file contains 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
on getFinderDirectory() | |
tell application "Finder" | |
set loc to insertion location | |
return POSIX path of (loc as alias) as text | |
end tell | |
end getFinderDirectory | |
return getFinderDirectory() |