User:Suffusion of Yellow/fdb-core.js: Difference between revisions

Content deleted Content added
Maybe I should share this? Not finished but still might be useful.
 
Deprecate all_links, support ip_reputation_* and revertrisk_level variables
 
(6 intermediate revisions by the same user not shown)
Line 246:
operators: "==?=?|!==?|!=|\\+|-|/|%|\\*\\*?|<=?|>=?|\\(|\\)|\\[|\\]|&|\\||\\^|!|:=?|\\?|;|,",
keywords: "contains|in|irlike|like|matches|regex|rlike|if|then|else|end",
variables: "accountname|action|added_lines|added_lines_pst|added_links|all_links|edit_delta|edit_diff|edit_diff_pst|file_bits_per_channel|file_height|file_mediatype|file_mime|file_sha1|file_size|file_width|global_user_editcount|global_user_groups|ip_reputation_client_behaviors|ip_reputation_client_count|ip_reputation_client_proxies|ip_reputation_ipoid_known|ip_reputation_risk_types|ip_reputation_tunnel_operators|moved_from_age|moved_from_first_contributor|moved_from_id|moved_from_last_edit_age|moved_from_namespace|moved_from_prefixedtitle|moved_from_recent_contributors|moved_from_restrictions_create|moved_from_restrictions_edit|moved_from_restrictions_move|moved_from_restrictions_upload|moved_from_title|moved_to_age|moved_to_first_contributor|moved_to_id|moved_to_last_edit_age|moved_to_namespace|moved_to_prefixedtitle|moved_to_recent_contributors|moved_to_restrictions_create|moved_to_restrictions_edit|moved_to_restrictions_move|moved_to_restrictions_upload|moved_to_title|new_content_model|new_html|new_links|new_pst|new_size|new_text|new_wikitext|oauth_consumer|old_content_model|old_links|old_size|old_wikitext|page_age|page_first_contributor|page_id|page_last_edit_age|page_namespace|page_prefixedtitle|page_recent_contributors|page_restrictions_create|page_restrictions_edit|page_restrictions_move|page_restrictions_upload|page_title|removed_lines|removed_links|revertrisk_level|sfs_blocked|summary|timestamp|tor_exit_node|translate_source_text|translate_target_language|user_age|user_app|user_blocked|user_editcount|user_emailconfirm|user_groups|user_mobile|user_name|user_rights|user_type|user_unnamed_ip|wiki_language|wiki_name",
deprecated: "all_links|article_articleid|article_first_contributor|article_namespace|article_prefixedtext|article_recent_contributors|article_restrictions_create|article_restrictions_edit|article_restrictions_move|article_restrictions_upload|article_text|moved_from_articleid|moved_from_prefixedtext|moved_from_text|moved_to_articleid|moved_to_prefixedtext|moved_to_text",
disabled: "minor_edit|old_html|old_text"
};
Line 305:
return this.entry.filter_id == 0 ?
mw.util.getUrl("Special:Contribs/" + mw.util.wikiUrlencode(this.entry.user)) :
title: mw.util.getUrl("Special:AbuseLog", {
new mw.Uri(mw.config.get('wgScript')).extend({
title: "Special:AbuseLog",
wpSearchUser: this.entry.user
});
Line 313 ⟶ 312:
return this.entry.filter_id == 0 ?
mw.util.getUrl("Special:PageHistory/" + mw.util.wikiUrlencode(this.entry.title)) :
title: mw.util.getUrl("Special:AbuseLog", {
new mw.Uri(mw.config.get('wgScript')).extend({
title: "Special:AbuseLog",
wpSearchTitle: this.entry.title
});
Line 514 ⟶ 512:
 
mw.config.set("aceConfig", config);
ace.config.set('basePath', mw.config.get('wgExtensionAssetsPath') + "/CodeEditor/modules/lib/ace");
 
let editor = ace.edit(this.$refs.aceEditor);
Line 915 ⟶ 913:
},
async clearCache() {
try {
await window.caches.delete("filter-debugger");
 
this.updateStatus("Cache cleared");
} catch (e) {
this.updateStatus("No cache found");
}
},
selectHit(hit) {
Line 1,149 ⟶ 1,150:
mw.util.addCSS(ui_namespaceObject);
 
if (typeof Vue.configureCompat({ MODE: 3== }'function');
Vue.configureCompat({ MODE: 3 });
 
document.getElementById('firstHeading').innerText = document.title = "Debugging edit filter";