MCPcopy Create free account
hub / github.com/XIU2/UserScript / createButton

Function createButton

Lanzou-Enhanced.user.js:719–732  ·  view source on GitHub ↗
(element, by, title)

Source from the content-addressed store, hash-verified

717 };
718 }
719 function createButton(element, by, title) {
720 // element.insertAdjacentHTML('beforeend', '<a class="col_sort_btn" href="javascript: void;" style="font-size: 16px; float: right;">⇧</a>');
721 let button = frameDoc.createElement('a');
722 button.className = 'col_sort_btn';
723 button.href = 'javascript: void(0);';
724 button.style.fontSize = '16px';
725 button.style.float = 'right';
726 if (by == 'name') {button.style.float = 'left';}
727 button.title = title;
728 button.textContent = '⇧';
729 button.onclick = () => clickSortButton(by, button);
730 element.appendChild(button);
731 return button;
732 }
733
734
735 function getFiles() {

Callers 1

createAllButtonsFunction · 0.85

Calls 1

clickSortButtonFunction · 0.85

Tested by

no test coverage detected