Last active
July 19, 2025 22:23
-
-
Save smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114 to your computer and use it in GitHub Desktop.
Revisions
-
smasongarrison revised this gist
Jul 19, 2025 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,8 @@ // @version 1.0 // @description Auto-fills Cat-a-lot edit summary on category-related pages // @match https://en.wikipedia.org/wiki/Category:* // @match https://en.wikipedia.org/w/index.php?search=* // @match https://en.wikipedia.org/w/index.php?title=Category: // @downloadURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @updateURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @grant none @@ -21,5 +22,5 @@ if (box && !box.value.trim()) { box.value = stringToInsert; } }, 1400); // wait 1.4 seconds })(); -
smasongarrison revised this gist
Jul 12, 2025 . No changes.There are no files selected for viewing
-
smasongarrison revised this gist
Jul 12, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,5 +21,5 @@ if (box && !box.value.trim()) { box.value = stringToInsert; } }, 500); // wait .5 seconds })(); -
smasongarrison revised this gist
Jul 12, 2025 . 1 changed file with 4 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,8 @@ // @namespace user-custom // @version 1.0 // @description Auto-fills Cat-a-lot edit summary on category-related pages // @match https://en.wikipedia.org/wiki/Category:* // @include /^https:\/\/en\.wikipedia\.org\/w\/index\.php\?.*(title=Category:|search=Category:).*/ // @downloadURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @updateURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @grant none @@ -16,21 +16,10 @@ const selector = '#cat_a_lot_comment'; const stringToInsert = 'Diffusing per [[WP:DIFFUSE]] and/or [[WP:ALLINCLUDED]]'; setTimeout(() => { const box = document.querySelector(selector); if (box && !box.value.trim()) { box.value = stringToInsert; } }, 2000); // wait 2 seconds })(); -
smasongarrison revised this gist
Jul 12, 2025 . No changes.There are no files selected for viewing
-
smasongarrison revised this gist
Jul 12, 2025 . 1 changed file with 11 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,9 @@ // @name Wikipedia Classic Edit Summary Autofill // @namespace user-custom // @version 1.0 // @description Auto-fills Cat-a-lot edit summary on category-related pages // @include /^https:\/\/en\.wikipedia\.org\/wiki\/Category:.*/ // @include /^https:\/\/en\.wikipedia\.org\/w\/index\.php\?.*(title=Category:|search=Category:).*/ // @downloadURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @updateURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @grant none @@ -12,23 +13,24 @@ (function() { 'use strict'; const selector = '#cat_a_lot_comment'; const stringToInsert = 'Diffusing per [[WP:DIFFUSE]] and/or [[WP:ALLINCLUDED]]'; const fillIfEmpty = () => { const box = document.querySelector(selector); if (box && !box.value.trim()) { box.value = stringToInsert; } }; const observer = new MutationObserver(() => { const box = document.querySelector(selector); if (box) { fillIfEmpty(); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); window.addEventListener('load', fillIfEmpty); })(); -
smasongarrison revised this gist
Jul 11, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,8 @@ // @version 1.0 // @description Appends default summary text to the classic Wikipedia edit summary box // @match https://*.wikipedia.org/w/index.php?title=*&action=edit // @downloadURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @updateURL https://gist.github.com/smasongarrison/cf44eb29a3c862ffccfbec1b97e9e114/raw/Classic_Edit_Summary_Autofill.js // @grant none // ==/UserScript== -
smasongarrison created this gist
Jul 11, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ // ==UserScript== // @name Wikipedia Classic Edit Summary Autofill // @namespace user-custom // @version 1.0 // @description Appends default summary text to the classic Wikipedia edit summary box // @match https://*.wikipedia.org/w/index.php?title=*&action=edit // @grant none // ==/UserScript== (function() { 'use strict'; const selector = '#wpSummary'; // The classic edit summary input field const stringToAppend = ' - minor copyedit for clarity'; // The string you want to add const updateTextbox = () => { const box = document.querySelector(selector); if (box && !box.value.includes(stringToAppend)) { box.value += stringToAppend; } }; const observer = new MutationObserver(() => { const box = document.querySelector(selector); if (box) { updateTextbox(); observer.disconnect(); // Done } }); observer.observe(document.body, { childList: true, subtree: true }); })();