Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.
This script needs a list of backgrounds (url) to set in your wiki. For this, you just must declare a list before of script import.
var bgrandom_list =["bg.png","bg2.png","bg3.png"];
You can also enable night mode and day mode.
var bgrandom_nightmode =true,
By default, backgrounds are show with a default code CSS, if you want configure this there are several extra options:
Set a default color for the background on the site.
Set a size for the background.
Set the attachment for the background.
Set the background if it repeat or not.
Here's a example:
var bg_color ='#fff',
Using configuration options with Fandom Open Source Library scripts