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
$$('#video-title').forEach(x => { | |
let sty = x.style | |
setStyle(x, { | |
overflow: 'visible', | |
maxHeight: 'none', | |
lineHeight: 1.2, | |
display: 'block', | |
}) | |
}) |
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
function printFullFloat(number) { | |
var numStr = number.toFixed(100) | |
var index = numStr.length-1 | |
var char = numStr.charAt(index) | |
while(char == '0') { | |
index-- | |
char = numStr.charAt(index) | |
} | |
if(char != '.') { | |
index++ |
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
# I only have used it inside of my vhosts file, but I think it should also work in .htaccess | |
RewriteEngine on | |
# rewrite to https. | |
# ----------------- | |
# %{HTTP:X-Forwarded-Proto} !https: This condition checks if the X-Forwarded-Proto header is not set to https. | |
# The X-Forwarded-Proto #header is typically set by proxies or load balancers to indicate the original protocol | |
# used for the request. By checking this header, # you can ensure that the redirect only occurs if the request | |
# is not already using HTTPS. |