Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

 

Boost team fun and productivity on Confluence by small changes to the UI with short JavaScript userscripts

The browsers of users render Confluence pages in HTML. The appearance of the page can be altered or additional functions can be applied to these pages by JavaScript code. Confluence users may use bookmarklets or userscripts to execute their own code on these pages.

Teams in corporations may want to share these scripts and administration teams may want to prohibit code from uncontrolled sources to be executed in a corporate environment. This is when Userscripts for Confluence enters the stage. Userscripts for Confluence is an app for Confluence Server that allows to administrate JavaScript code to be executed in the Confluence users browser.

While bookmarklets need to be executed by users explicitly by clicking on links in the browser bookmarks, userscripts are executed when predefined conditions are meet. Userscripts for Confluence allows to be executed 

  • if a user is member of a certain Confluence group
  • if a user's name is explicitly registered
  • if the currently rendered page
    • is part of a certain space
    • is part of a space labelled with a certain category
    • is labelled with a given label

Or a combination (connected by "or") of the above.

By providing scripts to be executed in explicitly specified contexts, users of Confluence can implement a number of use cases.

  1. Hide elements like
    1. macros from the macro browser
    2. space blueprints from the space wizard
    3. page blueprints from the page wizard
  2. Add page elements
    1. links or buttons
    2. divs and paragraphs


  • No labels