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
import {getAllComments} from '../libs/dom-utils'; | |
import {paths} from '../libs/paths'; | |
function getCommentIndentation(element) { | |
const parent = element.parentElement; | |
const indentation = parent.querySelector('.ind img').width / 40; | |
return indentation; | |
} | |
async function init(metadata) { |
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
body, #hnmain { | |
background-color: #eee; | |
} | |
#hnmain { | |
position: relative; | |
border: 0px solid #dda; | |
max-width: 850px !important; | |
background-color: #fff; | |
} |
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
#!/usr/local/bin/ruby | |
# -*- encoding: utf-8 -*- | |
require "rubygems" | |
require "mail" | |
require "fileutils" | |
require "daemons" | |
# I know I probably shouldn't use constants like that… | |
DEBUG = true |
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
$desktop: "only screen and (min-width: 1024px)"; | |
$retina: "only screen and (-webkit-min-device-pixel-ratio: 2)"; | |
$non_retina: "only screen and (-webkit-max-device-pixel-ratio: 1)"; | |
$ipad: "only screen and (min-device-width: 768px) and (max-device-width: 1024px)"; | |
$ipad_landscape: "only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"; | |
$ipad_portrait: "only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)"; | |
$ipad_retina: "only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2)"; |
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
tell application id "com.apple.finder" | |
tell window of desktop | |
set {_, _, lngwidth, lngHeight} to bounds | |
set lngHeight to lngHeight - 22 | |
end tell | |
end tell | |
tell application "System Events" to tell process "Safari" | |
get value of attribute "AXFullScreen" of window 1 | |
if result = false then |
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
tell application id "com.apple.finder" | |
tell window of desktop | |
set {_, _, lngwidth, lngHeight} to bounds | |
set lngHeight to lngHeight - 22 | |
end tell | |
end tell | |
tell application "System Events" to tell process "Safari" | |
tell front window | |
set position to {22, 22 * 2} |