_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:Magnus Manske/LinkFixr.js

Nowadays, User:Magnus Manske/LinkFixr.js is a topic that has captured the attention of many people around the world. From its origin to its impact on today's society, User:Magnus Manske/LinkFixr.js has played an important role in people's lives. In this article, we will thoroughly explore the different aspects and perspectives related to User:Magnus Manske/LinkFixr.js, analyzing its effects in various areas. From its influence on popular culture to its relevance in past, present and future history, we will dive into a detailed analysis of User:Magnus Manske/LinkFixr.js and its role in today's world. With a critical and reflective look, we will examine the different implications and consequences of User:Magnus Manske/LinkFixr.js, trying to better understand its impact on current society and in the future.
if ( $.inArray(mw.config.get('wgAction'), ) !== -1) $( init_linkfixr );

function init_linkfixr () {
  var tools = document.getElementById("p-tb") ;
  var out = '<li id="t-permalink">' ;

  var ot = document.editform.wpTextbox1.value ;
  var t = get_linkfixr_text ( ot ) ;
  if ( t != ot ) {
    out += "<a href='javascript:run_linkfixr();'>LinkFixr</a>" ;
  } else {
    out += "<span style='color:#888888'>LinkFixr</span>" ;
  }
  tools = tools.getElementsByTagName("ul") ;
  tools.innerHTML += out ;
}

function get_linkfixr_text ( ot ) {
  var t = ot ;

  var ct ;
  do {
    ct = t ;
    t = t.split('[["').join('"[[') ;
    t = t.split('"]]').join(']]"') ;

    t = t.split("[['").join("'[[") ;
    t = t.split("']]").join("]]'") ;

    t = t.split(',]]').join(']],') ;
    t = t.split(':]]').join(']]:') ;
    t = t.split(';]]').join(']];') ;

  } while ( ct != t ) ;

  return t ;
}

function run_linkfixr () {
  var ot = document.editform.wpTextbox1.value ;
  var t = get_linkfixr_text ( ot ) ;
  if ( t != ot ) {
    document.editform.wpTextbox1.value = t ;
    var s = document.editform.wpSummary.value ;
    if ( s != "" ) s += "; " ;
    s += "fixed link(s) using ]" ;
    document.editform.wpSummary.value = s ;
  }
}