CINXE.COM
View source for Help:VisualFileChange.js - Wikimedia Commons
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>View source for Help:VisualFileChange.js - Wikimedia Commons</title> <script>(function(){var className="client-js";var cookie=document.cookie.match(/(?:^|; )commonswikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":true,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"cc9240fb-2a31-4da0-8854-2bc1fd9db359","wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:VisualFileChange.js","wgTitle":"VisualFileChange.js","wgCurRevisionId":847827020,"wgRevisionId":0,"wgArticleId":15859752,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"], "wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Help:VisualFileChange.js","wgRelevantArticleId":15859752,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["autoconfirmed"],"wgNoticeProject":"commons","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":false,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":10000,"wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"upwizPropertyTitles":{"P180":"Main subjects visible in this work"},"upwizPropertyPlaceholders":{"P180":"e.g., Angolan giraffe"},"upwizPropertyCopyLabels":{"P180":"Main subjects"}, "wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wbmiDefaultProperties":["P180"],"wbmiPropertyTitles":{"P180":"Items portrayed in this file"},"wbmiPropertyTypes":{"P180":"wikibase-item"},"wbmiRepoApiUrl":"/w/api.php","wbmiHelpUrls":{"P180":"https://commons.wikimedia.org/wiki/Special:MyLanguage/Commons:Depicts"},"wbmiExternalEntitySearchBaseUri":"https://www.wikidata.org/w/api.php","wbmiSupportedDataTypes":["wikibase-item","string","quantity","time","monolingualtext","external-id","globe-coordinate","url"],"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness", "fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.gadget.Long-Image-Names-in-Categories":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.styles.legacy":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.charinsert.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.discussionTools.init.styles":"ready","codex-search-styles":"ready","ext.uls.pt":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.legacy.js","ext.centralNotice.geoIP","ext.translate.pagetranslation.uls","ext.charinsert","ext.gadget.Slideshow","ext.gadget.ZoomViewer", "ext.gadget.CollapsibleTemplates","ext.gadget.fastcci","ext.gadget.Stockphoto","ext.gadget.WatchlistNotice","ext.gadget.AjaxQuickDelete","ext.gadget.WikiMiniAtlas","ext.gadget.LanguageSelect","ext.gadget.PictureOfTheYearEnhancements","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.wikimediaEvents.wikibase","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=codex-search-styles%7Cext.charinsert.styles%7Cext.discussionTools.init.styles%7Cext.translate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles.legacy&only=styles&skin=vector"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.gadget.Long-Image-Names-in-Categories&only=styles&skin=vector"> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="View source for Help:VisualFileChange.js - Wikimedia Commons"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//commons.m.wikimedia.org/wiki/Help:VisualFileChange.js"> <link rel="apple-touch-icon" href="/static/apple-touch/commons.png"> <link rel="icon" href="/static/favicon/commons.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikimedia Commons"> <link rel="EditURI" type="application/rsd+xml" href="//commons.wikimedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://commons.wikimedia.org/wiki/Help:VisualFileChange.js"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="Wikimedia Commons Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin-vector-legacy mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject page-Help_VisualFileChange_js rootpage-Help_VisualFileChange_js skin-vector action-edit"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"><!-- CentralNotice --></div> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading">View source for Help:VisualFileChange.js</h1> <div id="bodyContent" class="vector-body"> <div id="contentSub"><div id="mw-content-subtitle">← <a href="/wiki/Help:VisualFileChange.js" title="Help:VisualFileChange.js">Help:VisualFileChange.js</a></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content"><p>You do not have permission to edit this page, for the following reasons: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext"><div class="mw-parser-output"> <div id="mw-protectedpagetext"> <style data-mw-deduplicate="TemplateStyles:r919301499">.mw-parser-output .fmbox{clear:both;margin:0.2em 0;width:100%;border:1px solid #a2a9b1;background-color:var(--background-color-interactive-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .fmbox-warning{border:1px solid #bb7070;background-color:#ffdbdb}.mw-parser-output .fmbox-editnotice{background-color:transparent}.mw-parser-output .fmbox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .fmbox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .fmbox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .fmbox .mbox-invalid-type{text-align:center}@media screen{html.skin-theme-clientpref-night .mw-parser-output .fmbox-warning{background-color:#300}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .fmbox-warning{background-color:#300}}</style><table class="plainlinks fmbox fmbox-editnotice" role="presentation"><tbody><tr><td class="mbox-image"><figure class="mw-halign-left" typeof="mw:File"><a href="/wiki/File:Semi-protection-shackle.svg" class="mw-file-description"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Semi-protection-shackle.svg/100px-Semi-protection-shackle.svg.png" decoding="async" width="100" height="100" class="mw-file-element" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Semi-protection-shackle.svg/150px-Semi-protection-shackle.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Semi-protection-shackle.svg/200px-Semi-protection-shackle.svg.png 2x" data-file-width="512" data-file-height="512" /></a><figcaption></figcaption></figure></td><td class="mbox-text"><dl><dt style=""><strong style="font-size:130%">This page is currently semi-protected, and can be edited only by established registered users.</strong></dt></dl> <ul><li><a href="/wiki/Special:MyLanguage/Commons:Protection_policy#Types_of_protection" title="Special:MyLanguage/Commons:Protection policy">Semi-protection</a> is sometimes necessary to prevent <a href="/wiki/Special:MyLanguage/Commons:Vandalism" title="Special:MyLanguage/Commons:Vandalism">vandalism</a> to popular pages. Most media files and <a href="/wiki/Special:MyLanguage/Commons:Galleries" title="Special:MyLanguage/Commons:Galleries">gallery pages</a> can be edited by anyone.</li> <li>The reason for protection can be found in the <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Special:Log&type=protect&page=Help:VisualFileChange.js">protection log</a></span>.</li> <li>If you have a user account, <a href="/wiki/Special:UserLogin" title="Special:UserLogin">log in</a> first. If you do not yet have an account, you may <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Special:UserLogin&type=signup">create one</a></span>; after a while, you will be able to edit semi-protected pages.</li> <li>You can <a href="/wiki/Help_talk:VisualFileChange.js" title="Help talk:VisualFileChange.js">discuss this page</a> with others. If you have noticed an error or have a suggestion for a simple change, start a <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Help_talk:VisualFileChange.js&action=edit&section=new">new section</a></span> on this page’s talk page and insert the text <code>{{edit request}}</code> followed by your request. An established user (an account older than 4 days) may then make the change on your behalf.</li> <li>You may <a href="/wiki/Commons:Administrators%27_noticeboard/Blocks_and_protections" title="Commons:Administrators' noticeboard/Blocks and protections">request unprotection</a> of the page.</li></ul></td></tr></tbody></table></div></div></li></ul> <li class="mw-permissionerror-globalblocking-blockedtext-range"><b>Your IP address is in a range that has been <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">blocked on all Wikimedia Foundation wikis</a>.</b> <p>The block was made by <a href="/wiki/User:Jon_Kolbert" title="User:Jon Kolbert">Jon Kolbert</a>. The reason given is <i><a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/NOP" class="extiw" title="m:Special:MyLanguage/NOP">Open proxy/Webhost</a>: See the <a href="https://meta.wikimedia.org/wiki/WM:OP/H" class="extiw" title="m:WM:OP/H">help page</a> if you are affected </i>. </p> <ul><li>Start of block: 15:12, 27 August 2023</li> <li>Expiry of block: 15:12, 27 August 2028</li></ul> <p>Your current IP address is 8.222.208.146. The blocked range is 8.222.128.0/17. </p><p>Please include all above details in any queries you make. If you believe you were blocked by mistake, you can find additional information and instructions in the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">No open proxies</a> global policy. </p> Otherwise, to discuss the block please <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">post a request for review on Meta-Wiki</a>. You could also send an email to the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stewards</a> <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">VRT</a> queue at <kbd>stewards@wikimedia.org</kbd> including all above details.</li><hr /> <p>You can view and copy the source of this page. </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1"><languages/><noinclude>{{tmbox|image =[[File:Question book-new.svg|40px]]|text=<translate><!--T:73--> This is the documentation for '''VisualFileChange''', a JavaScript gadget for mass editing.</translate> <translate><!--T:74--> The script itself is located at [[MediaWiki:Gadget-VisualFileChange.js]].</translate>}} {{MediaWiki:VisualFileChange.js/versionBox}} </noinclude> <translate> == What is VFC? == <!--T:2--> </translate> [[File:Perform batch task.png|thumb|<translate><!--T:3--> “Perform batch task” link in the toolbox</translate>]] <translate><!--T:4--> VisualFileChange (a.k.a. AjaxMassDelete), adds a “Perform batch task” link to your toolbox on wiki pages.</translate> <translate><!--T:5--> Clicking this link allows you to apply actions to some or all of one user's uploads, files in a category, or files displayed in a gallery.</translate> <translate><!--T:6--> Actions include the creation of mass-deletion requests, the insertion of tags or free text, and customized text substitutions ([[#RegExpr|regular expressions]] are supported).</translate> <translate> == Documentation == <!--T:7--> <!--T:8--> <tvar name=seealso>{{int:seealso}}</tvar> [[Help:AjaxQuickDelete]] for the basics of the automatic deletion requests or “tag file & notify uploader”. === Step 0: How to Install === <!--T:9--> </translate> {{JS-Test | 1 = {{Clickable button|target={{fullurl:{{FULLPAGENAME}}|withModule=ext.gadget.VisualFileChange.core}}|text=<translate><!--T:10--> Just try it without installing</translate>|external=true|iconPrimary=ui-icon-play|class=ui-button-large}} | 2 = <translate><!--T:11--> VisualFileChange is a JavaScript tool. You do not have JavaScript enabled.</translate> }} <translate><!--T:12--> To install it:</translate> * <translate><!--T:13--> Manual: In "[[<tvar name=pref>Special:Preferences#mw-prefsection-gadgets</tvar>|Preferences": "gadgets" tab]], "Maintenance tools" section: click "VisualFileChange" and hit "Save" at bottom of page.</translate> * <translate><!--T:14--> Automatic:</translate> {{ActivateGadget|name=VisualFileChange|message<translate><!--T:15--> =click here and follow the instructions</translate>}}. * <translate><!--T:16--> If you do not have the [[<tvar name=ap>Special:MyLanguage/Commons:Autopatrolled</tvar>|autopatrolled]] right: add <tvar name=sy><syntaxhighlight lang="javascript" enclose="none">mw.loader.load( 'ext.gadget.VisualFileChange' );</syntaxhighlight></tvar> to [[<tvar name=myc2>Special:MyPage/common.js</tvar>|your common.js]] or <skin>.js</translate> <translate> <!--T:17--> You should now see a ''Perform batch task'' link in your toolbox.</translate> <translate><!--T:18--> Clicking it will launch VisualFileChange. <!--T:19--> To change the ''Perform batch task'' text, add <tvar name=wcode><syntaxhighlight lang="javascript" enclose="none">window.vFC_PortletText = '<your new portlet text>';</syntaxhighlight></tvar> to [[<tvar name=myc>Special:MyPage/common.js</tvar>|your common.js]] or <skin>.js</translate> [[File:VisualFileChange startDialog.png|thumb|<translate><!--T:20--> The start-dialog prompts for the target</translate>]] <translate> === Step 1: Insert contributor === <!--T:21--> <!--T:22--> Script prompts for the contributor, a page name, a category, or a search query. Make sure you spell it correctly. === Step 2: Select action, insert reason, replace and pattern, tags or free text === <!--T:23--> <!--T:24--> OTRS-Members: first fill in the ID or URL and then switch to ''OTRS- remove tags''. With ''OTRS- add'' you can add any template to the permission section without removing speedy-deletion- and related-tags. <!--T:25--> Check ''Clean permission-section?'' to remove other stuff from the permission section, if it exists. === Step 3: Load as many files as you want to change === <!--T:26--> <!--T:27--> Only files that are selected and in the dialog will be changed. [[<tvar name=file1>:File:VisualFileChange queryMore.png</tvar>|To get more files]], scroll down or click on "more". However, do not crash your browser loading too many files.</translate> <translate><!--T:28--> Instead, you can continue where you stopped using the "more options" in the start dialog or the [[#Step 5: Execute|automatically created profile]]. === Step 4: Select items to perform the action on === <!--T:29--> <!--T:30--> There are only items listed, originally uploaded by the specified user.</translate> <translate><!--T:31--> If there are deleted images, the numbers are discontinuous.</translate> <translate><!--T:32--> Script will detect a lot of problem- and OTRS-tags and common license-types and show them under each thumbnail.</translate> [[:File:MassDeleteOTRS.png|<translate><!--T:33--> Example</translate>]] [[File:VisualFileChange selectDialog.png|center]] [[File:VisualFileChange cuteSelect.png|thumb|<translate><!--T:34--> Just want to pick some files with or without a category? Want to select files uploaded between xx and yy because you got OTRS permission for these files? No problem, click on the select link</translate>]] <translate> ==== Cute select – Filter loaded files ==== <!--T:35--> <!--T:36--> If you do not specify anything, everything will match and all checkboxes in the thumbnail-dialog will get the state of the one in this dialog.</translate> <translate><!--T:37--> This allows you both, selecting and deselecting.</translate> [[File:VisualFileChange examineRegexp.png|thumb|<translate><!--T:38--> VisualFileChange supports multiple RegEx-replace and offers methods to preserve certain areas. In addition, you can preview the changes before they are made.</translate>]] ;<translate><!--T:39--> RegExpr {{anchor|RegExpr}} '''/R/'''</translate> <translate><!--T:40--> A RegExpr also known as regular expression or regex is a pattern used to match more than one "string" (e.g. the image text or a title)</translate>. <translate><!--T:41--> They can be really helpful anywhere, so, if you are unexperienced don't be lazy and learn them; the earlier, the better. <!--T:42--> In the cute selection dialog, insert the RegExpr without flags <small>(they are currently not supported)</small> (<code>Test.*</code>); however when performing a custom replace, insert the RegExpr with flags (<tvar name=icode><code>/\{\{FlickrView.*\|\d{4}\}\}/ig</code></tvar>). Don't forget to escape "special characters". <!--T:43--> Please test your RegExpr before using and use the opportunity to examine the changes the current set of replacement rules would cause to avoid undesired replacements.</translate> <translate><!--T:44--> You can use https://regex101.com/ (or similar tools) to test your RegExpr. <!--T:77--> When using regular expressions, VFC follows the same convention as Perl, PHP, and others that in the replacement string, <code>$0</code> matches the whole matched string, <code>$1</code> matches the first parenthesized expression, <code>$2</code> the second parenthesized expression, etc. So, for example, the regular expression <tvar name=1><code><nowiki>/[|]\s*[Ss]ource\s*=\s*([^|}]*) on MyCoolWebsite/</nowiki></code></tvar> with a replacement string <tvar name=2><code><nowiki>| Source = {{MyCoolWebsite|$1}}</nowiki></code></tvar> would turn <tvar name=3><code>|source=FOO.BAR on MyCoolWebsite</nowiki></code></tvar> into <tvar name=4><code><nowiki>| Source = {{MyCoolWebsite|FOO.BAR}}</nowiki></code></tvar>. <!--T:45--> Reference/ Examples: [<tvar name=1r>http://de.selfhtml.org/javascript/objekte/regexp.htm</tvar> de], [<tvar name=r2>http://www.w3schools.com/jsref/jsref_obj_regexp.asp</tvar> en], [<tvar name=r3>http://www.javascriptkit.com/jsref/regexp.shtml</tvar> en] ==== Range selection – Multiple files between two files ==== <!--T:46--> <!--T:47--> Select ''file A'', hold down {{keypress|Shift}} while selecting ''file B''.</translate> <translate><!--T:48--> All files between the two files now get the state of ''file B''. ==== Custom replace: Flags ==== <!--T:75--> </translate> * <translate><!--T:49--> If <tvar name=code1><code><nowiki>/R/</nowiki></code></tvar> is set, the pattern is treated as a regular expression.</translate> <translate><!--T:50--> If the background behind the button is red, it is very likely that you forgot to tick this button.</translate> <translate><!--T:51--> If the background behind the pattern field is red, you ticked this button but the pattern is not a valid regular expression.</translate> * <translate><!--T:52--> If <tvar name=code2><code><nowiki>%V%</nowiki></code></tvar> is set, VisualFileChange looks for variables (e.g. File metadata like <tvar name=code3><code><nowiki>%GPSLatitude%</nowiki></code></tvar> or the file name <tvar name=code4><code><nowiki>%PAGENAME%</nowiki></code></tvar>) in "Text to insert instead".</translate> <translate><!--T:53--> This option is on-by-default.</translate> [[Help:VisualFileChange.js/samples#Inserting variables|<translate><!--T:54--> Examples</translate>]]. <translate> === Step 5: Execute === <!--T:55--> </translate> <translate><!--T:56--> Script will show you what it is currently doing.</translate> <translate><!--T:57--> Finally it prompts you where to go. Before executing, the script saves your input into an auto-profile.</translate> <translate><!--T:58--> This allows you to continue at the last loaded files. If you re-launch VisualFileChange and insert the same target, a big yellow box will appear.</translate> <translate><!--T:59--> Just click the link for convenient continuing.</translate> [[File:VisualFileChange advancedConfig.png|thumb|<translate><!--T:60--> The advanced configuration. Here you can play around with the defaults. Do not forget to permanently save them.</translate>]] <translate> === Custom settings === <!--T:61--> <!--T:62--> VisualFileChange allows you to customize lots of features.</translate> <translate><!--T:63--> It is not recommended to drastically increase the numbers of files to be loaded when scrolling down but it can be helpful in some cases. <!--T:64--> If you send too many simultaneous requests to the API, errors may rise. Users who are not <abbr title="IPs in wiki-jargon">logged in</abbr> should only send one request at one time.</translate> <translate><!--T:65--> In case of errors, set "ask for confirmation after ... edits" to less than 8 and wait a while when the dialog prompts you whether to continue.</translate> <translate><!--T:66--> We regret this limitation but cannot change it because it is on the server side. There are also much more edit restrictions for users who are not logged in. === Further information === <!--T:76--> </translate> * [[Help:VisualFileChange.js/samples|<translate><!--T:67--> Use cases and examples</translate>]] * <translate><!--T:68--> View more [[<tvar name=cat>:Category:Screenshots of VisualFileChange</tvar>|screenshots of VisualFileChange]]</translate> <translate> === Developing and finding and fixing Bugs === <!--T:69--> </translate> * <translate><!--T:70--> Please report bugs at [[<tvar name=bugtr>MediaWiki talk:Gadget-VisualFileChange.js</tvar>]]</translate> * [[:File:AjaxMassDelete FlowChart.png|<translate><!--T:71--> flow chart</translate>]] <translate><!--T:72--> (outdated)</translate> <noinclude>[[Category:VisualFileChange]]</noinclude> </textarea><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Templates used on this page: </p></div><ul> <li><a href="/wiki/MediaWiki:VisualFileChange.js/version" title="MediaWiki:VisualFileChange.js/version">MediaWiki:VisualFileChange.js/version</a> (<a href="/w/index.php?title=MediaWiki:VisualFileChange.js/version&action=edit" title="MediaWiki:VisualFileChange.js/version">view source</a>) </li><li><a href="/wiki/MediaWiki:VisualFileChange.js/versionBox" title="MediaWiki:VisualFileChange.js/versionBox">MediaWiki:VisualFileChange.js/versionBox</a> (<a href="/w/index.php?title=MediaWiki:VisualFileChange.js/versionBox&action=edit" title="MediaWiki:VisualFileChange.js/versionBox">view source</a>) </li><li><a href="/wiki/Template:ActivateGadget" title="Template:ActivateGadget">Template:ActivateGadget</a> (<a href="/w/index.php?title=Template:ActivateGadget&action=edit" title="Template:ActivateGadget">edit</a>) </li><li><a href="/wiki/Template:Anchor" title="Template:Anchor">Template:Anchor</a> (<a href="/w/index.php?title=Template:Anchor&action=edit" title="Template:Anchor">view source</a>) (template editor protected)</li><li><a href="/wiki/Template:Clickable_button" title="Template:Clickable button">Template:Clickable button</a> (<a href="/w/index.php?title=Template:Clickable_button&action=edit" title="Template:Clickable button">view source</a>) (protected)</li><li><a href="/wiki/Template:Clickable_button/iconclass" title="Template:Clickable button/iconclass">Template:Clickable button/iconclass</a> (<a href="/w/index.php?title=Template:Clickable_button/iconclass&action=edit" title="Template:Clickable button/iconclass">view source</a>) (protected)</li><li><a href="/wiki/Template:JS-Test" title="Template:JS-Test">Template:JS-Test</a> (<a href="/w/index.php?title=Template:JS-Test&action=edit" title="Template:JS-Test">view source</a>) (semi-protected)</li><li><a href="/wiki/Template:Key_press" title="Template:Key press">Template:Key press</a> (<a href="/w/index.php?title=Template:Key_press&action=edit" title="Template:Key press">edit</a>) </li><li><a href="/wiki/Template:Key_press/core" title="Template:Key press/core">Template:Key press/core</a> (<a href="/w/index.php?title=Template:Key_press/core&action=edit" title="Template:Key press/core">edit</a>) </li><li><a href="/wiki/Template:Keypress" class="mw-redirect" title="Template:Keypress">Template:Keypress</a> (<a href="/w/index.php?title=Template:Keypress&action=edit" class="mw-redirect" title="Template:Keypress">edit</a>) </li><li><a href="/wiki/Template:LangSwitch" title="Template:LangSwitch">Template:LangSwitch</a> (<a href="/w/index.php?title=Template:LangSwitch&action=edit" title="Template:LangSwitch">view source</a>) (protected)</li><li><a href="/wiki/Template:Tmbox" title="Template:Tmbox">Template:Tmbox</a> (<a href="/w/index.php?title=Template:Tmbox&action=edit" title="Template:Tmbox">view source</a>) (template editor protected)</li><li><a href="/wiki/Template:Unicode" title="Template:Unicode">Template:Unicode</a> (<a href="/w/index.php?title=Template:Unicode&action=edit" title="Template:Unicode">edit</a>) </li><li><a href="/wiki/Module:Anchor" title="Module:Anchor">Module:Anchor</a> (<a href="/w/index.php?title=Module:Anchor&action=edit" title="Module:Anchor">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Arguments" title="Module:Arguments">Module:Arguments</a> (<a href="/w/index.php?title=Module:Arguments&action=edit" title="Module:Arguments">view source</a>) (protected)</li><li><a href="/wiki/Module:LangSwitch" title="Module:LangSwitch">Module:LangSwitch</a> (<a href="/w/index.php?title=Module:LangSwitch&action=edit" title="Module:LangSwitch">view source</a>) (protected)</li><li><a href="/wiki/Module:Message_box" title="Module:Message box">Module:Message box</a> (<a href="/w/index.php?title=Module:Message_box&action=edit" title="Module:Message box">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Message_box/configuration" title="Module:Message box/configuration">Module:Message box/configuration</a> (<a href="/w/index.php?title=Module:Message_box/configuration&action=edit" title="Module:Message box/configuration">edit</a>) </li><li><a href="/wiki/Module:Message_box/tmbox.css" title="Module:Message box/tmbox.css">Module:Message box/tmbox.css</a> (<a href="/w/index.php?title=Module:Message_box/tmbox.css&action=edit" title="Module:Message box/tmbox.css">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:TableTools" title="Module:TableTools">Module:TableTools</a> (<a href="/w/index.php?title=Module:TableTools&action=edit" title="Module:TableTools">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Yesno" title="Module:Yesno">Module:Yesno</a> (<a href="/w/index.php?title=Module:Yesno&action=edit" title="Module:Yesno">view source</a>) (protected)</li></ul></div><p id="mw-returnto">Return to <a href="/wiki/Help:VisualFileChange.js" title="Help:VisualFileChange.js">Help:VisualFileChange.js</a>.</p> <!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://commons.wikimedia.org/wiki/Help:VisualFileChange.js">https://commons.wikimedia.org/wiki/Help:VisualFileChange.js</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="mw-portlet mw-portlet-personal vector-user-menu-legacy vector-menu" aria-labelledby="p-personal-label" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-uls" class="mw-list-item active"><a class="uls-trigger" href="#"><span>English</span></a></li><li id="pt-anonuserpage" class="mw-list-item"><span title="The user page for the IP address you are editing as">Not logged in</span></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li><li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-createaccount" class="mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Help%3AVisualFileChange.js&returntoquery=action%3Dedit" title="You are encouraged to create an account and log in; however, it is not mandatory"><span>Create account</span></a></li><li id="pt-login" class="mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Help%3AVisualFileChange.js&returntoquery=action%3Dedit" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li> </ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-namespaces-label" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-help" class="selected mw-list-item"><a href="/wiki/Help:VisualFileChange.js" title="View the help page [c]" accesskey="c"><span>Help page</span></a></li><li id="ca-talk" class="mw-list-item"><a href="/wiki/Help_talk:VisualFileChange.js" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </nav> <nav id="p-variants" class="mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-variants-label" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" > <label id="p-variants-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-views-label" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="mw-list-item"><a href="/wiki/Help:VisualFileChange.js"><span>View</span></a></li><li id="ca-viewsource" class="selected mw-list-item"><a href="/w/index.php?title=Help:VisualFileChange.js&action=edit" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="mw-list-item"><a href="/w/index.php?title=Help:VisualFileChange.js&action=history" title="Past revisions of this page [h]" accesskey="h"><span>History</span></a></li> </ul> </div> </nav> <nav id="p-cactions" class="mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-cactions-label" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" > <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box"> <h3 >Search</h3> <form action="/w/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search Wikimedia Commons" aria-label="Search Wikimedia Commons" autocapitalize="sentences" title="Search Wikimedia Commons [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:MediaSearch"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> <div id="mw-panel" class="vector-legacy-sidebar"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/wiki/Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="mw-portlet mw-portlet-navigation vector-menu-portal portal vector-menu" aria-labelledby="p-navigation-label" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigate</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-welcome" class="mw-list-item"><a href="/wiki/Commons:Welcome"><span>Welcome</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Commons:Community_portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-village-pump" class="mw-list-item"><a href="/wiki/Commons:Village_pump"><span>Village pump</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>Help center</span></a></li> </ul> </div> </nav> <nav id="p-participate" class="mw-portlet mw-portlet-participate vector-menu-portal portal vector-menu" aria-labelledby="p-participate-label" > <h3 id="p-participate-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Participate</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-uploadbtn" class="mw-list-item"><a href="/wiki/Special:UploadWizard"><span>Upload file</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-latestfiles" class="mw-list-item"><a href="/wiki/Special:NewFiles"><span>Latest files</span></a></li><li id="n-randomimage" class="mw-list-item"><a href="/wiki/Special:Random/File" title="Load a random file [x]" accesskey="x"><span>Random file</span></a></li><li id="n-contact" class="mw-list-item"><a href="/wiki/Commons:Contact_us"><span>Contact us</span></a></li> </ul> </div> </nav> <nav id="p-tb" class="mw-portlet mw-portlet-tb vector-menu-portal portal vector-menu" aria-labelledby="p-tb-label" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Help:VisualFileChange.js" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Help:VisualFileChange.js" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Help:VisualFileChange.js&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fcommons.wikimedia.org%2Fw%2Findex.php%3Ftitle%3DHelp%3AVisualFileChange.js%26action%3Dedit"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fcommons.wikimedia.org%2Fw%2Findex.php%3Ftitle%3DHelp%3AVisualFileChange.js%26action%3Dedit"><span>Download QR code</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-otherprojects" class="mw-portlet mw-portlet-wikibase-otherprojects vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-otherprojects-label" > <h3 id="p-wikibase-otherprojects-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In other projects</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q23625460" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </nav> </div> </div> <footer id="footer" class="mw-footer" > <ul id="footer-info"> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Commons:Welcome">About Wikimedia Commons</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Commons:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/commons.wikimedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//commons.m.wikimedia.org/w/index.php?title=Help:VisualFileChange.js&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"codex-search-styles\".\n[1.43] Use a CodexModule with codexComponents to set your specific components used: https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components");mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-qqs7t","wgBackendResponseTime":219,"wgPageParseReport":{"limitreport":{"cputime":"0.047","walltime":"0.067","ppvisitednodes":{"value":176,"limit":1000000},"postexpandincludesize":{"value":17015,"limit":2097152},"templateargumentsize":{"value":1932,"limit":2097152},"expansiondepth":{"value":17,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1026,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 47.343 1 Template:Protectedpagetext/PageSemiProtected","100.00% 47.343 1 -total"," 93.60% 44.314 1 Template:Editnotice"," 57.10% 27.034 1 Template:Fmbox"," 32.25% 15.268 2 Template:FULLROOTPAGENAME"," 28.40% 13.444 1 Template:Namespace_has_subpages"," 7.37% 3.488 1 Template:Image"," 2.82% 1.337 1 Template:Str_left"]},"scribunto":{"limitreport-timeusage":{"value":"0.015","limit":"10.000"},"limitreport-memusage":{"value":716465,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-qqs7t","timestamp":"20241124190815","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>