Fandom Developers Wiki
Advertisement

BulkVideoUpload is based on AjaxBatchDelete. It allows you to enter a list of video URLs, or a YouTube playlist, and upload them all to a wiki.

Installation

Usage

The option to use the Bulk Video Upload script will appear under your My Tools list.

In order to upload a list of videos, just add the video URLs from supported video sites in the form, each on a new line. Pressing "Start" will start uploading them. The script will stop when it reaches an empty line, and it can be terminated early by blanking the remaining URLs. If the video is a duplicate of one already on the wiki, it will skip it.

It also features the ability to load from a modal on any page with the option to modify the rate at which it uploads. If you'd like to modify the default rate of one upload every 1000 milliseconds (1 second), add the config window.bulkVideoUploadDelay before importing the script with your own number (in milliseconds) instead. For example, the code below will lower the rate to 0.1 second:

window.bulkVideoUploadDelay= 100;

Using configuration options with Fandom Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.

Configuration options load too late, don't work
// 1. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;

// 2. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

If you want to add all videos from a YouTube playlist, hit "Add YouTube Playlist" and enter a valid YouTube playlist ID like PLZM8-DYEa4Q03nEYDxZfG71f57tQVH4ha. All of the videos in it will be added to the main box where you can start it. To find a YouTube playlist ID:

  1. Go to your target YouTube playlist on the browser.
  2. On the address bar, you will see something like this: https://www.youtube.com/watch?v=RRNmPncKUaU&list=PLZM8-DYEa4Q03nEYDxZfG71f57tQVH4ha.
  3. The playlist ID is the characters after list= so in the URL above, our playlist ID is PLZM8-DYEa4Q03nEYDxZfG71f57tQVH4ha.
  4. Copy the playlist ID and paste it into the popout.
Text above can be found here (edit)


Advertisement