User:Daniel Quinlan/Scripts/Clock

{{Infobox user script

| name = Clock

| author = {{u|Daniel Quinlan}}

| updated = {{#time:j F Y|{{REVISIONTIMESTAMP|User:Daniel Quinlan/Scripts/Clock.js}}}}

| status = Stable

| browsers = Firefox, Safari, Chrome

| source = Clock.js

}}

The Clock script displays a UTC clock at the bottom right corner of Wikipedia pages.

Features

  • The clock refreshes every minute to show the current UTC time.
  • The clock is always visible in the bottom right corner of the page.
  • The appearance can be adjusted via CSS using the .utc-clock selector.
  • On small screens, the clock is reduced in size and it's not displayed on content pages that are unlikely to include timestamps.

Installation

To install the Clock script, follow these steps: {{Ordered list|In your preferences, go to {{myprefs|Gadgets}}. At the bottom of the "Advanced" section, click the "{{delink|{{int:Gadget-script-installer}}}}" checkbox, then click the "Save" button.|Return to this page and click the blue "Install" button.}}

Alternatively, you can manually install it by adding the following code to your common.js file:

{{subst:iusc|User:Daniel Quinlan/Scripts/Clock.js}}

Configuration

None.