Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCA: RecentChangesAlert

RC stands for the RecentChanges special page (Polish: OZ, Ostatnie Zmiany). The script starts when you enable live updates on RC. A sound will play when new changes appear.

Disabling sound: In Firefox, just press CTRL+M (mute tab). This will temporarily disable sounds.

Installation

// RCA: [[meta:User:Nux/RecentChangesAlert.js]]
mw.loader.load("https://meta.wikipedia.org/w/index.php?title=User:Nux/RecentChangesAlert.js&action=raw&ctype=text/javascript");

Sounds of RC

A small warning — there are two sounds: one short and one long. Usually, you'll hear the short sound, but after a longer period, you'll hear a longer sound designed to draw your attention... and it works pretty well in my tests. Remember you can always mute the tab.

Default sounds of RC

Custom sounds of RC

To have custom sounds you do this (instead of standard installation):

// RCA: [[meta:User:Nux/RecentChangesAlert.js]]
mw.loader.load("https://meta.wikipedia.org/w/index.php?title=User:Nux/RecentChangesAlert.js&action=raw&ctype=text/javascript");
mw.hook('userjs.RecentChangesAlert.loaded').add(function (rcAlert) {
	// Note! You must use `upload.wikimedia.org`, so a raw sound link
	rcAlert.setSounds({
		shortSoundUrl: 'https://upload.wikimedia.org/wikipedia/commons/f/fb/NEC_PC-9801VX_ITF_beep_sound.ogg',
		longSoundUrl: 'https://upload.wikimedia.org/wikipedia/commons/7/75/En-uk-yo-ho-ho.oga',
	});
});

Some other sounds You might want to use:

Or search for something else:

DEV

Init:

npm i

Deploy:

npm run deploy

External links

  • Wikiploy on npm – Wikiploy can be used to deploy from Git back to Wikipedia.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages