સભ્ય:Ashok modhvadia/vector.js

વિકિપીડિયામાંથી

નોંધ: પાનું પ્રકાશિત કર્યા પછી, તમારે તમારા બ્રાઉઝરની કૅશ બાયપાસ કરવાની આવશ્યકતા પડી શકે છે.

  • ફાયરફોક્સ / સફારી: શીફ્ટ દબાવેલી રાખીને રિલોડ પર ક્લિક કરો, અથવા તો Ctrl-F5 કે Ctrl-R દબાવો (મેક પર ⌘-R)
  • ગુગલ ક્રોમ: Ctrl-Shift-R દબાવો (મેક પર ⌘-Shift-R)
  • ઈન્ટરનેટ એક્સપ્લોરર/એજ: Ctrl દબાવેલી રાખીને રિફ્રેશ પર ક્લિક કરો, અથવા Ctrl-F5 દબાવો
  • Opera: Ctrl-F5 દબાવો
importScript('User:TheJosh/Scripts/NewPagePatrol.js');

if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) > -1 ) {
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:V111P/js/smartLinkingLoader.js'
			+ '&action=raw&ctype=text/javascript');
}

// This script creates new text box for the name of the edited section.
// This way, the browser's autocomplete for edit summary doesn't contain section name and becomes much more useful.
// Tested in Firefox.
$(function()
{
	if (wgAction == 'edit' || wgAction == 'submit')
	{
		var summary = document.getElementById('wpSummary');
		var sectionIdInput = where(summary.form.elements, function(el) { return el.name == 'wpSection' });
		if (sectionIdInput)
		{
			if (sectionIdInput.value == 'new')
				return;
		}
		summary.style.width = '74%';
		var section = document.createElement('input');
		section.id = section.name = 'section';
		section.style.width = '23.7%';
		section.style.setProperty('margin-right', '1%', '');
		section.tabIndex = 1;
		summary.parentNode.insertBefore(document.createElement('br'), summary);
		summary.parentNode.insertBefore(section, summary);
		var re = RegExp('/\\*\\s*(.*?)\\s*\\*/\\s*');
		var result = re.exec(summary.value);
		if (result)
			section.value = result[1];
		summary.value = summary.value.replace(re, '');
		summary.form.onsubmit = function(){
			if (section.value)
				summary.value = '/* ' + section.value + ' */ ' + summary.value;
		};
	}
});

function where(array, predicate)
{
	for (var i = 0; i < array.length; i++)
		if (predicate(array[i]))
			return array[i];
}



importScript('User:Endo999/GoogleTrans.js');

// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");

var editPage = 'Edit count';
var tableClass = '';
var tableStyle = '';

// [[Wikipedia:Tools/Navigation popups]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');



mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ProveIt.js&oldid=650571979&action=raw&ctype=text/javascript' );
mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ProveIt.css&oldid=650571981&action=raw&ctype=text/css', 'text/css' );