Skip to content

Instantly share code, notes, and snippets.

@adomasven
adomasven / testTree.html
Created August 9, 2022 10:31
Wooshy Inaccessible Tree in Firefox
<html>
<body>
<div role="tree"
aria-label="Collections" aria-activedescendant="collection-tree-row-0" style="position: relative;">
<div class="row"
style="padding-inline-start: 0px; height: 20px; line-height: 20px; top: 0px; position: absolute;"
aria-level="1" aria-setsize="20" aria-posinset="1" aria-expanded="true" role="treeitem" draggable="true"
data-event-handlers-attached="true" id="collection-tree-row-0" aria-selected="true"><span
class="cell label primary"><span class="icon icon-twisty twisty open" style="pointer-events: auto;"><svg
width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><polyline
@adomasven
adomasven / Neatsistatydinsiu
Last active June 22, 2017 13:12
If you feel like resigning from learning Lithuanian
statyti - to build
statyti-s - to build (for) yourself
at-statyti - to rebuild
ne-statyti - to not build
at-si-statyti - to rebuild (for) yourself
ne-si-statyti - to not build (for) yourself
ne-at-statyti - to not rebuild
ne-at-si-statyti - to not rebuild (for) yourself
---
staty-din-ti - to put into a position
@adomasven
adomasven / itemTreeView
Created August 3, 2016 10:19
Reverse Zotero 4.0 creator sort order
Zotero.ItemTreeView.prototype.sort = function(itemID)
{
var t = new Date;
// If Zotero pane is hidden, mark tree for sorting later in setTree()
if (!this._treebox.columns) {
this._needsSort = true;
return;
}
this._needsSort = false;