User:Polygnotus/Scripts/FindArticlesWithDuplicateRefs.js: Difference between revisions
Content deleted Content added
Polygnotus (talk | contribs) ←Created page with '// Wikipedia Duplicate Reference Finder for common.js // Adds a tool to search for articles with exact duplicate references $(document).ready(function() { // Only run on Wikipedia if (mw.config.get('wgSiteName') !== 'Wikipedia') return; // Add portlet link to toolbox mw.util.addPortletLink( 'p-tb', '#', 'Find Duplicate Refs', 'find-duplicate-refs', 'Search for articles with duplicate references'...' |
Polygnotus (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
//needed for testing DeduplicateReferences.js
// Wikipedia Duplicate Reference Finder for common.js
// Adds a tool to search for articles with exact duplicate references
Line 91 ⟶ 92:
let searchActive = false;
let searchAborted = false;
// Make searchAborted accessible to the performSearch function
window.currentSearchAborted = false;
$('#start-search').click(async function() {
Line 96 ⟶ 100:
searchActive = true;
$(this).prop('disabled', true);
$('#stop-search').prop('disabled', false);
Line 114 ⟶ 118:
$('#stop-search').click(function() {
$('#search-status').text('Search stopped by user.');
});
Line 149 ⟶ 153:
for (const article of articles) {
if (
checkedCount++;
|