User:Bongolium500/Gadgets/MediaWiki:Gadget-talk page button.js

mw.loader.using('mediawiki.api', function {	var element = document.createElement("a");	element.class = "wds-button wds-is-text page-header__action-button has-label";	element.href = "/wiki/Talk:"+$(location).attr('href').slice(30);	element.id = "ca-talk";	element.data-tracking-label = "ca-talk";	element.accesskey = "t";	element.contentText = "%3Csvg%20class%3D%22wds-icon%20wds-icon-small%22%3E%3Cuse%20xlink%3Ahref%3D%22%23wds-icons-pencil-small%22%3E%3C/use%3E%3C/svg%3EEdit";	document.getElementById('p-views').appendChild(element); });