Examine individual changes
This page allows you to examine the variables generated by the Edit Filter for an individual change.
Variables generated for this change
Variable | Value |
---|---|
Edit count of the user (user_editcount ) | 62215 |
Name of the user account (user_name ) | 'Amorymeltzer' |
Age of the user account (user_age ) | 478622443 |
Groups (including implicit) the user is in (user_groups ) | [
0 => 'interface-admin',
1 => 'oversight',
2 => 'patroller',
3 => 'reviewer',
4 => 'sysop',
5 => '*',
6 => 'user',
7 => 'autoconfirmed'
] |
Rights that the user has (user_rights ) | [
0 => 'editinterface',
1 => 'editsitecss',
2 => 'editsitejson',
3 => 'editsitejs',
4 => 'editusercss',
5 => 'edituserjson',
6 => 'edituserjs',
7 => 'oathauth-enable',
8 => 'browsearchive',
9 => 'deletedhistory',
10 => 'deletedtext',
11 => 'abusefilter-view-private',
12 => 'deleterevision',
13 => 'deletelogentry',
14 => 'hideuser',
15 => 'suppressrevision',
16 => 'suppressionlog',
17 => 'abusefilter-hide-log',
18 => 'abusefilter-hidden-log',
19 => 'viewsuppressed',
20 => 'patrol',
21 => 'review',
22 => 'autoreview',
23 => 'autoconfirmed',
24 => 'editsemiprotected',
25 => 'templateeditor',
26 => 'changetags',
27 => 'extendedconfirmed',
28 => 'suppressredirect',
29 => 'noratelimit',
30 => 'editcontentmodel',
31 => 'block',
32 => 'createaccount',
33 => 'delete',
34 => 'undelete',
35 => 'import',
36 => 'move',
37 => 'move-subpages',
38 => 'move-rootuserpages',
39 => 'move-categorypages',
40 => 'autopatrol',
41 => 'protect',
42 => 'editprotected',
43 => 'rollback',
44 => 'upload',
45 => 'reupload',
46 => 'reupload-shared',
47 => 'unwatchedpages',
48 => 'ipblock-exempt',
49 => 'blockemail',
50 => 'markbotedits',
51 => 'apihighlimits',
52 => 'movefile',
53 => 'mergehistory',
54 => 'managechangetags',
55 => 'deletechangetags',
56 => 'abusefilter-revert',
57 => 'stablesettings',
58 => 'movestable',
59 => 'tboverride',
60 => 'titleblacklistlog',
61 => 'transcode-reset',
62 => 'transcode-status',
63 => 'globalblock-whitelist',
64 => 'nuke',
65 => 'skipcaptcha',
66 => 'override-antispoof',
67 => 'centralauth-createlocal',
68 => 'abusefilter-log-detail',
69 => 'abusefilter-log-private',
70 => 'abusefilter-modify-restricted',
71 => 'massmessage',
72 => 'read',
73 => 'edit',
74 => 'createtalk',
75 => 'writeapi',
76 => 'viewmywatchlist',
77 => 'editmywatchlist',
78 => 'viewmyprivateinfo',
79 => 'editmyprivateinfo',
80 => 'editmyoptions',
81 => 'centralauth-merge',
82 => 'abusefilter-view',
83 => 'abusefilter-log',
84 => 'vipsscaler-test',
85 => 'collectionsaveasuserpage',
86 => 'reupload-own',
87 => 'createpage',
88 => 'minoredit',
89 => 'editmyusercss',
90 => 'editmyuserjson',
91 => 'editmyuserjs',
92 => 'purge',
93 => 'sendemail',
94 => 'applychangetags',
95 => 'spamblacklistlog',
96 => 'mwoauthmanagemygrants',
97 => 'collectionsaveascommunitypage',
98 => 'createpagemainns'
] |
Whether the user is editing from mobile app (user_app ) | false |
Whether or not a user is editing through the mobile interface (user_mobile ) | false |
Page ID (page_id ) | 3620495 |
Page namespace (page_namespace ) | 4 |
Page title without namespace (page_title ) | 'WikiProject User scripts/Scripts/Unwatch' |
Full page title (page_prefixedtitle ) | 'Wikipedia:WikiProject User scripts/Scripts/Unwatch' |
Edit protection level of the page (page_restrictions_edit ) | [
0 => 'sysop'
] |
Page age in seconds (page_age ) | 476282131 |
Action (action ) | 'edit' |
Edit summary/reason (summary ) | 'Remove legacy globals per [[phab:T72470]] (via [[WP:JWB]])' |
Old content model (old_content_model ) | 'javascript' |
New content model (new_content_model ) | 'javascript' |
Old page wikitext, before the edit (old_wikitext ) | '/* This script adds an "unwatch" link to each entry in your watchlist. This version works regardless of whether you have the "Enhanced recent changes" option selected in your [[Special:Preferences|user preferences]]. By default the links take you back to [[Special:Watchlist|your watchlist]]. If you'd prefer them to take you to a "Removed from watchlist" page like the unwatch links at the top of the watched pages, uncomment the second line in the function.
Other versions:
* [[User:Ilmari_Karonen/unwatch.js]] (''legacy script'')
* [[User:Quarl/watchlist.js]]
* [[user:js/watchlist]]
* [[Bugzilla:424]] (if implemented)
*/
addOnloadHook(function () {
// Check if we're on the watchlist
if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;
// Unwatch links go back to watchlist with "Removing requested items from watchlist..." message
var query_prefix = "title="+encodeURIComponent(wgPageName)+"&action=submit&remove=1&id[]=";
// ...or...
// Unwatch links go to "Removed from watchlist" page
//var query_prefix = "action=unwatch&title=";
// get list of all links in content:
var links = document.getElementById('content').getElementsByTagName('a');
// make a static copy of the nodelist and lose the original for speed
// while we're at it, prune the uninteresting links from the list
var linksCopy = new Array ();
for (var i = 0; i < links.length; i++) {
if (/[?&]action=history([&#]|$)/.test(links[i].href)) linksCopy.push(links[i]);
}
links = linksCopy;
for (var i = 0; i < links.length; i++) {
// create unwatch link and append it after history link
var unwatch = document.createElement('a');
unwatch.href = wgServer + wgScriptPath + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);
unwatch.title = "Unwatch "+links[i].title;
unwatch.appendChild(document.createTextNode("unwatch"));
links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
// insert a delimiter between the two links
var delim = links[i].previousSibling;
delimText = (delim.nodeType == 3 ? delim.nodeValue : ""); // kluge to handle case where "diff" is unlinked
delim = document.createTextNode(delimText.replace(/^.*diff/, ""));
links[i].parentNode.insertBefore(delim, unwatch);
}
});' |
New page wikitext, after the edit (new_wikitext ) | '/* This script adds an "unwatch" link to each entry in your watchlist. This version works regardless of whether you have the "Enhanced recent changes" option selected in your [[Special:Preferences|user preferences]]. By default the links take you back to [[Special:Watchlist|your watchlist]]. If you'd prefer them to take you to a "Removed from watchlist" page like the unwatch links at the top of the watched pages, uncomment the second line in the function.
Other versions:
* [[User:Ilmari_Karonen/unwatch.js]] (''legacy script'')
* [[User:Quarl/watchlist.js]]
* [[user:js/watchlist]]
* [[Bugzilla:424]] (if implemented)
*/
addOnloadHook(function () {
// Check if we're on the watchlist
if (!mw.config.get('wgCanonicalSpecialPageName') || mw.config.get('wgCanonicalSpecialPageName') != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;
// Unwatch links go back to watchlist with "Removing requested items from watchlist..." message
var query_prefix = "title="+encodeURIComponent(mw.config.get('wgPageName'))+"&action=submit&remove=1&id[]=";
// ...or...
// Unwatch links go to "Removed from watchlist" page
//var query_prefix = "action=unwatch&title=";
// get list of all links in content:
var links = document.getElementById('content').getElementsByTagName('a');
// make a static copy of the nodelist and lose the original for speed
// while we're at it, prune the uninteresting links from the list
var linksCopy = new Array ();
for (var i = 0; i < links.length; i++) {
if (/[?&]action=history([&#]|$)/.test(links[i].href)) linksCopy.push(links[i]);
}
links = linksCopy;
for (var i = 0; i < links.length; i++) {
// create unwatch link and append it after history link
var unwatch = document.createElement('a');
unwatch.href = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);
unwatch.title = "Unwatch "+links[i].title;
unwatch.appendChild(document.createTextNode("unwatch"));
links[i].parentNode.insertBefore(unwatch, links[i].nextSibling);
// insert a delimiter between the two links
var delim = links[i].previousSibling;
delimText = (delim.nodeType == 3 ? delim.nodeValue : ""); // kluge to handle case where "diff" is unlinked
delim = document.createTextNode(delimText.replace(/^.*diff/, ""));
links[i].parentNode.insertBefore(delim, unwatch);
}
});' |
Unified diff of changes made by edit (edit_diff ) | '@@ -12,9 +12,9 @@
// Check if we're on the watchlist
- if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
+ if (!mw.config.get('wgCanonicalSpecialPageName') || mw.config.get('wgCanonicalSpecialPageName') != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;
// Unwatch links go back to watchlist with "Removing requested items from watchlist..." message
- var query_prefix = "title="+encodeURIComponent(wgPageName)+"&action=submit&remove=1&id[]=";
+ var query_prefix = "title="+encodeURIComponent(mw.config.get('wgPageName'))+"&action=submit&remove=1&id[]=";
// ...or...
@@ -36,5 +36,5 @@
// create unwatch link and append it after history link
var unwatch = document.createElement('a');
- unwatch.href = wgServer + wgScriptPath + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);
+ unwatch.href = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);
unwatch.title = "Unwatch "+links[i].title;
unwatch.appendChild(document.createTextNode("unwatch"));
' |
New page size (new_size ) | 2548 |
Old page size (old_size ) | 2463 |
Size change in edit (edit_delta ) | 85 |
Lines added in edit (added_lines ) | [
0 => ' if (!mw.config.get('wgCanonicalSpecialPageName') || mw.config.get('wgCanonicalSpecialPageName') != "Watchlist") return;',
1 => ' var query_prefix = "title="+encodeURIComponent(mw.config.get('wgPageName'))+"&action=submit&remove=1&id[]=";',
2 => ' unwatch.href = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?" + query_prefix + encodeURIComponent(links[i].title);'
] |
External links added in the edit (added_links ) | [] |
External links in the page, before the edit (old_links ) | [] |
Whether or not the change was made through a Tor exit node (tor_exit_node ) | false |
Unix timestamp of change (timestamp ) | 1612702512 |
External links in the new text (new_links ) | [] |