From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

$(document).click( function(e) {

	var $target = $(e.target);

	if ( ! $target.is('.wp-teahouse-question-form *') && ! $target.is('.wp-teahouse-ask *')) {

		var requestData = {

			action:"edit",

			title: "Wikipedia:"+mw.config.get( 'wgTitle' ),

			appendtext: "Hello, World!",

			summary: "Testing [[User:Technical_13/SandBox/TWAcontents.js]]",

			token:mw.user.tokens.get( 'editToken' )

		};

		$.post(mw.config.get( 'wgScriptPath' ) + '/api.php', requestData, function(responseData){

			//Whatever you want to do *after* the edit is posted goes here. For example:

			alert("posted successfully!");

		});

	}

} );
From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

$(document).click( function(e) {

	var $target = $(e.target);

	if ( ! $target.is('.wp-teahouse-question-form *') && ! $target.is('.wp-teahouse-ask *')) {

		var requestData = {

			action:"edit",

			title: "Wikipedia:"+mw.config.get( 'wgTitle' ),

			appendtext: "Hello, World!",

			summary: "Testing [[User:Technical_13/SandBox/TWAcontents.js]]",

			token:mw.user.tokens.get( 'editToken' )

		};

		$.post(mw.config.get( 'wgScriptPath' ) + '/api.php', requestData, function(responseData){

			//Whatever you want to do *after* the edit is posted goes here. For example:

			alert("posted successfully!");

		});

	}

} );

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook