Tool created by Ahecht. Source available at https://tools.wmflabs.org/ircredirect/source.php
The ircredirect tool redirects users to an irc channel on kiwiirc.com with a randomly generated username. The generated username consists of an adjective taken from a list of 20 adjectives, a noun taken from a list of nouns, and a two-digit number. The two digit number and the adjective are issued sequentially, while the noun is chosen randomly from the list.
Per https://phabricator.wikimedia.org/T172612, user consent must be obtained before redirecting to a third-party server. If user consent was gained on the page linking to the ircredirect tool, add
consent=yes to the end of the URL to silenty redirect to kiwiirc.com without displaying the disclaimer, e.g.
By default, the script redirects to the Wikipedia Help Channel (
irc.freenode.net). This can be overridden by adding the
server= parameters to the url, e.g.
By default, the seed values are taken from at Wikipedia:IRC help disclaimer/nicks. This can be changed by adding a
baseurl= parameter to the url. The URL should be urlencoded, e.g.
The script will return the text of the redirect URL instead of actually performing the redirect if the
debug= paramter is set to any value.
The seed value file is a raw text file, and should contain two lists, one of adjectives and one of nouns. Each list consists of one word per line (do not try to add HTML or wiki line breaks). The noun list should start with the line
----<!--NOUN VALUES ONLY BELOW THIS LINE-->---- and end with the line
----<!--NOUN VALUES ONLY ABOVE THIS LINE-->----. The adjective list should start with the line
----<!--ADJECTIVE VALUES ONLY BELOW THIS LINE-->---- and end with the line
----<!--ADJECTIVE VALUES ONLY ABOVE THIS LINE-->----. If the file is not found or not properly formatted, the generated name will default to "WPHelp" followed by a two digit number. An example seed file is shown below:
The MIT License
Copyright (c) 2017 Ahecht
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.