User:Connel MacKenzie/diff.js

Hello, you have come here looking for the meaning of the word User:Connel MacKenzie/diff.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Connel MacKenzie/diff.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Connel MacKenzie/diff.js in singular and plural. Everything you need to know about the word User:Connel MacKenzie/diff.js you have here. The definition of the word User:Connel MacKenzie/diff.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Connel MacKenzie/diff.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
function addWiktDiffQuestion() {
//disambig-see-also, .disambig-see-also-2
  var wiktSpans = document.getElementsByTagName('div');
  var wiktDisambigSeeAlso;
  if (wiktSpans) {
    for (var i=0; i<wiktSpans.length; i++ ) {
      if ( wiktSpans.getAttribute('class') ) {
        if ( wiktSpans.getAttribute('class') == 'disambig-see-also' ) {wiktDisambigSeeAlso = wiktSpans;}
        if ( wiktSpans.getAttribute('class') == 'disambig-see-also-2' ) {wiktDisambigSeeAlso = wiktSpans;}
      }
    }
  }
  if ( (wiktDisambigSeeAlso) ) {
    var wiktAs = wiktDisambigSeeAlso;
    for (var x=0; wiktAs.childNodes; x++ ) {
      wiktAs2 = wiktAs.childNodes.innerHTML;
      if ( wiktAs2 ) { 
      if ( wiktAs2.split('"') == '<a href=' ) {
        var what2d = wiktAs2.split('https://dictious.com/en/');
        if (what2d) what2d = what2d.split('"');
        if (what2d) {
          var newa = document.createElement('a');
          newa.href = 'https://en.wiktionary.org/w/index.php?title=' + what2d + '&diff=next&oldid=' + wgCurRevisionId;
          var newl = document.createTextNode('(diff)');
          newa.appendChild(newl);
          var newsp = document.createTextNode(' ');
          wiktAs.childNodes.appendChild(newsp);
          wiktAs.childNodes.appendChild(newa);
        }
      }
      }
    }
  }

/* remove this cruft until a better place for the input box is suggested.
  var box = document.createElement('input');
      box.type = 'text';
      box.width = 30
      box.id = 'wiktDiff';
      box.name = 'wiktDiff';

  var wiktBoxButton = document.createElement('input');
      wiktBoxButton.type = 'submit';
      wiktBoxButton.name = 'Diff';
      wiktBoxButton.value = 'diff';
      wiktBoxButton.onclick = function() {
        document.location = 'http://en.wiktionary.orghttps://en.wiktionary.org/w/index.php?title=' +
          document.getElementById('wiktDiff').value.replace(' ', '_') +
          '&diff=next&oldid=' + wgCurRevisionId;
        }

  var captionforBox = document.createTextNode(' - compare to some other page: ');
  
  var firsthd = document.getElementsByTagName('H1').childNodes;
      firsthd.parentNode.appendChild( captionforBox );
      firsthd.parentNode.appendChild( box );
      firsthd.parentNode.appendChild( wiktBoxButton );
*/
}

$( addWiktDiffQuestion );