MediaWiki:DedicatedTalkButton.js

/* DedicatedTalkButton - move talk page link from dropdown to beside edit button */

/*jslint browser */ /*global $ */

$(function {    "use strict";

var $editDropdown = $(".page-header__contribution-buttons .wds-list"); var $talkLink = $editDropdown.find("#ca-talk");

if (!$talkLink.length) { return; }

$talkLink.parent.remove; $talkLink.addClass("wds-button wds-is-squished wds-is-secondary");

$editDropdown.parents(".wds-button-group").after(" ", $talkLink); });