Commons:User scripts/users namespace/reports/User:Addshore/reset.js
Jump to navigation
Jump to search
This is the report page for User:Addshore/reset.js. It is bot-maintained. All manual changes might be overwritten.
jshint[edit]
- ISSUE:
line 11 character 19
: ['sandboxreset'] is better written in dot notation. - Evidence:if(UrlParameters["sandboxreset"] == 1 && wgPageName == "Commons:Sandbox" && UrlParameters["action"] == "edit") {
- ISSUE:
line 11 character 92
: ['action'] is better written in dot notation. - Evidence:if(UrlParameters["sandboxreset"] == 1 && wgPageName == "Commons:Sandbox" && UrlParameters["action"] == "edit") {
- ISSUE:
line 12 character 19
: ['editform'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 40
: ['wpTextbox1'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 65
: Bad or unnecessary escaping. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 67
: Bad or unnecessary escaping. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 76
: Bad or unnecessary escaping. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 78
: Bad or unnecessary escaping. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 12 character 119
: Bad or unnecessary escaping. - Evidence:document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
- ISSUE:
line 13 character 19
: ['editform'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpSummary"].value = "[[User:Addshore/reset.js|JS EDIT]]: Reset the Sandbox"; //Make a descriptive edit summary
- ISSUE:
line 13 character 40
: ['wpSummary'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpSummary"].value = "[[User:Addshore/reset.js|JS EDIT]]: Reset the Sandbox"; //Make a descriptive edit summary
- ISSUE:
line 14 character 19
: ['editform'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpWatchthis"].checked = false; //Chances are you already have the sandbox watchlisted
- ISSUE:
line 14 character 40
: ['wpWatchthis'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpWatchthis"].checked = false; //Chances are you already have the sandbox watchlisted
- ISSUE:
line 15 character 19
: ['editform'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpMinoredit"].checked = true; //Make it a minor edit
- ISSUE:
line 15 character 40
: ['wpMinoredit'] is better written in dot notation. - Evidence:document.forms["editform"].elements["wpMinoredit"].checked = true; //Make it a minor edit
- ISSUE:
line 16 character 21
: ['indirect'] is better written in dot notation. - Evidence:if(UrlParameters["indirect"] == 1) { //If you've clicked on the toolbox link
- ISSUE:
line 17 character 52
: ['editform'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpDiff"].click(); }, 200); //Load the diff if you are resetting it per the toolbox link
- ISSUE:
line 17 character 73
: ['wpDiff'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpDiff"].click(); }, 200); //Load the diff if you are resetting it per the toolbox link
- ISSUE:
line 19 character 15
: Use '===' to compare with 'true'. - Evidence:if(save == true) {
- ISSUE:
line 20 character 54
: ['editform'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
- ISSUE:
line 20 character 75
: ['wpSave'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
- ISSUE:
line 23 character 50
: ['editform'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
- ISSUE:
line 23 character 71
: ['wpSave'] is better written in dot notation. - Evidence:window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!