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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#SingleInstance Force | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Helper for cycling windows in an app group | |
WinMoveBelow(hwnd, hwndBelow) { | |
; MsgBox, "Set " %hwnd% " and " %hwndBelow% | |
DllCall("SetWindowPos", "ptr", hwnd, "ptr", hwndBelow |
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
var a = ["KiB", "bytes"]; | |
Array | |
.from($('.table tbody tr')) | |
.map(function(v){ | |
return [$(v).find('td:nth-child(2) code').html(), $(v).find('td:nth-child(3)').html()] }) | |
.sort(function(l,r) { | |
var partsL = l[1].split(" "); | |
var partsR=r[1].split(" "); | |
return a.indexOf(partsL[1]) - a.indexOf(partsR[1]) || ~~partsR[0] - ~~partsL[0] }) | |
.map(function(v) { |