User:Shonagon/wikidata item.js

function insertAfter(referenceNode, newNode) { referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); } try { var wd_link=document.getElementById("t-wikibase").innerHTML var re =/wikidata\.org\/wiki\/.[^"]*/	var qwd = wd_link.match(re);	var qwd2=qwd[0].replace(/wikidata\.org\/wiki\//,"");	var el = document.createElement("span");	el.innerHTML = ""+qwd2+"";	var h1 = document.getElementById("firstHeading");	insertAfter(h1, el); } catch (e) {}