குறிப்பு - சேமித்த பின்னர், நீங்கள் செய்த மாற்றங்களைக் காண்பதற்கு உங்கள் உலவியின் இடைமாற்று அகற்றப்பட வேண்டும்.

  • மொஸில்லா பயர்பாக்ஸ் / சபாரி: Shift+Reload, அல்லது Ctrl-F5 அல்லது Ctrl-R (⌘-R Mac ல்)
  • கூகிள் குரோம் Ctrl-Shift-R அழுத்தவும். (⌘-Shift-R Mac ல்) ;
  • இண்டர்நெட் எக்ஸ்ப்ளோரர்: Ctrl-Refresh அல்லது Ctrl-F5 ஐ அழுத்தவும்.
  • ஒபேரா: Tools → Preferences இல் இடைமாற்றை அகற்றவும்;
/**
* Title:Redlink removal tool for Wikipedia. 
* Description:This tool helps to remove redlinks in wiki articles
* @author Mohamed Mahir ([[user:Mahir78]])
* @date 2010-12-23
* Version: 0.0.1
* License: GPLv3, CC-BY-SA 3.0
*/ 


mw.loader.load("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js");

// உங்களது கருத்துக்களை உரையாடல் பக்கத்தில் தெரிவிக்கவும்.

RegExp.quote = function(str) {
     return str.replace(/([.?*+^$[\]\\(){}-])/gi, "\\$1");
};

function RedlinkRemoval(){

$preview=$('#previewbox').text();

if($preview=='PREVIEW HERE'){
alert("Click preview button first!");
return false;
}
var $redlinks=[];

$('.new').each(function(){
$redlinks.push($(this).text());
});

temp=$('#rout').val();
$.each($redlinks,function(){
//temp=temp.replace('[[(\w+)*(\|)*'+ this +']]',this);
temp=temp.replace(/([\u0B82-\u0BFF]+[\d+]*(\s+))+/,'$2');
temp=temp.replace(/(([\u0B82-\u0BFF]+(\s+))+)*/,'$2');
temp=temp.replace(/([\u0B82-\u0BFF]*[aA-zZ]*(\s+)+)+/,'$2');
temp=temp.replace(/([\u0B82-\u0BFF]+(\s)*)(\|+)/,'$2');
temp=temp.replace('[[','').replace(']]','').trim();
temp=temp.replace(temp,'[['+temp+']]');

});
$('#rout').val(temp);
}

rhtm ="This page helps u to remove redlink in the wiki article";
rhtm +="<br\/><br\/>Input (article with redlinks):<br />";
rhtm +="<textarea id='in' name='in' cols=80 rows=6><\/textarea>";
rhtm +="<br\/><input type='button' onclick='RedlinkRemoval()' value='Remove redlink'>";
rhtm +="<br\/>Output (content without redlinks) : <br\/>";
rhtm +="<textarea id='rout' name='rout' cols=80 rows=6><\/textarea>";
rhtm +="<input type='button' id='temp_preview' value='Step 2: Preview the generated code' onclick='tempPreview(\"rout\")' />";
//$htm +="<input type='checkbox' id='red_link' onclick='RedlinkRemoval()'>Remove Red link & update the output<br />";
rhtm +="Step 3:Copy & Paste the above wiki text into your wiki article.<div id='previewbox' style='display:none'>PREVIEW HERE</div>";

$(document).ready(function(){

rdialog= $('<div></div>')
.html(rhtm)
.dialog({autoOpen: false,
title: 'Redlink removal',
height:500,
width:600,
maxHeight:400,
modal:true});

if($('#wpTextbox1').is(':visible')){


$("<a href='javascript:void(0)' onclick='openHelper()'> | Google articles redlink removal</a>").insertBefore($('#wpTextbox1'));
}
else{
$("<a href='javascript:void(0)' onclick='openHelper()' > | Google articles redlink removal</a>").insertBefore($('#wikEdInputWrapper'));
}

});

function tempRedRemovedPreview(inOut){
TempOut=$('#'+inOut).val();
if(TempOut!=''){
$('#previewbox').show();

url='http://ta.wikipedia.org/w/api.php';
$.post(url, { "format": "json","action":"parse","text":TempOut },
   function(data){
var parseddata=data.parse.text.*;
$("#previewbox").html(parseddata);                      
   
   }, "json");
}//tempPreview
}

function openHelper(){
rdialog.dialog('open');
$('#in').val($('#wpTextbox1').val());
tempRedRemovedPreview('in');
}
"https://ta.wikipedia.org/w/index.php?title=பயனர்:Mdmahir/redlink_removal.js&oldid=3291982" இலிருந்து மீள்விக்கப்பட்டது