Jump to content

User:Eejit43/scripts/copy-search-results

From Wikipedia, the free encyclopedia


User script
copy-search-results
File:Eejit43's copy-search-results script demo.png
DescriptionUser script to copy search results on Special:Search
Author(s)Eejit43
First releasedMay 12, 2023; 19 months ago (2023-05-12)
UpdatedJanuary 8, 2024; 11 months ago (2024-01-08) (see GitHub commit history)
BrowsersTested on Chromium
Skins
SourceUser:Eejit43/scripts/copy-search-results.js
GitHub repositorycopy-search-results.ts

This user script adds a link to the "More"/"Tools" menu on Special:Search which, when clicked, copies the titles of all visible search results (separated by newlines) to the clipboard.

Installation

Simple

Install Enterprisey's "script-installer" (at Preferences → Gadgets → Advanced → Tick Install scripts without having to manually edit JavaScript files (documentation)), then come back to this page and click the "Install" button in the infobox on the right.

Manual

Add the following to your common.js (or a skin specific JavaScript page):

{{subst:install user script|User:Eejit43/scripts/copy-search-results.js}}

Comments/bug reports

Please leave comments or report bugs on my talk page, or file an issue on the GitHub repository.