Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
show-titlefalse
titleDescription

The Userscript Admin Tool provides a simple user interface to create, search, and edit 

Static Document Link
documentUserscript (Glossary)
labeluserscripts
installed on the local Confluence server.


Section
title
titleDetails
intro-textMore information on using this tool.
Section
Userscript

A userscript is configured with the following properties.

Display List
doctypeglossary-item
list-typeunnumbered
sort-by#BREADTH_FIRST
render-short-descriptiontrue
where$<DirectAncestorTitle>=[Userscript (Glossary)]
render-childrentrue
select-for-nameShort Name


Section
titleUser Interface

The tool provides two functions.

  • The search tool allows to find existing userscripts
  • The editor allows to create or edit userscripts
Section
titleUserscript Search

Installed userscripts can be found with the Userscript Search Dialog.

Screenshot shows the Userscript Search Dialog with one hit.

Per default the search dialog will open on clicking the shortcut 'qq'.

By clicking on a row of the hitlist the Userscript Editor Dialog opens.

The Create Button opens the Userscript Editor Dialog with an empty form. 


Section
titleUserscript Editor

The editor renders the property of the selected userscript.

Screenshot showing the Userscript Editor Dialog with a loaded Userscript.

With the editor the script may be altered or deleted.

You may also clear the form and create a new userscript. If the new userscript should be based on the userscript shown, click Reuse Form. Reusing the form detaches the current userscript and allows to edit the information and save a new userscript.

The find button allows to specify the namespace and name and retrieve the latest version for the userscript. Note that the form will be populated with the information form that userscript, overriding the current field values in the form.



Section
titleDetails
intro-textMore information on using this tool.


Section
titleStyling

The highlighting of a row on hover in the search results can be configured via a style sheet.

Code Block
languagecss
table.aui > tbody > tr.userscript-table-row.highlight {
  background-color: aliceblue;
}

To override the default, be more specific with .userscript-highlight.

Code Block
languagecss
table.aui > tbody > tr.userscript-table-row.highlight.userscript-highlight {
  background-color: darkblue;
  color: white;
}



...