User talk:Yarnalgo/Flickrreview.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
// flickrreview template remover
function flickr_remove(autosave){
  document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(/({{User:FlickreviewR.*}})|({{(F|f)lickrr?eview.*}})/g, "");
  document.editform.wpSummary.value = '{{[[Template:Flickrreview|flickrreview]]}} template removed (using modified [[Commons:Flickr images/reviewers|flickrreview script]])';
  document.editform.wpMinoredit.checked = true;
 
  if (autosave)
    document.editform.submit();
}

Legacy JavaScript[edit]

Template:JS migration Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook() needs to be replaced with $(); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' ); and addPortletLink needs to be called with mw.util.addPortletLink. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (etc) 00:32, 19 January 2015 (UTC)[reply]