« first day (1399 days earlier)      last day (40 days later) » 

9:17 AM
I have the script below, which used to work on pages like https://www.wordreference.com/engr/clash

for example clicking on the first clash row would:

output clash → σύγκρουση, μάχη, σύρραξη

And similarly for following rows. Can one help with it?

// ==UserScript==
// @name WF select
// @version 0.1
// @author greektranslator
// @match https://www.wordreference.com/*
// @description WF select
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/waitForKeyElements.js
 
@greektranslator What doesn't work now?
 
When clicking on the page and then pasting nothing happens, ie no selection is made.
 
OK, I'll have a look.
 
Not sure how to paste code block here...
 
Paste the code in the comment box then press Ctrl+K. Alternatively there would be a button called "fixed font" that does the same.

It only shows up if you have multiline text
 
9:23 AM
// ==UserScript==
// @name         WF select
// @version      0.1
// @author       greektranslator
// @match        wordreference.com*
// @description  WF select
// @require      gist.githubusercontent.com/BrockA/2625891/raw/…
// @require      code.jquery.com/jquery-3.6.3.min.js
// @grant        GM_setClipboard
// @grant        GM_addStyle
// ==/UserScript==
/* globals waitForKeyElements */

(function() {
    'use strict';

    GM_addStyle('strong,td.FrWrd,td.ToWrd{user-select:all!important}em{user-select:none!important}');
 
^ you got it
Hmm, works for me. There is a little copy button at the end of the row when highlighted and clicking it copies the translation. Which userscript manger do you use?
> clash → σύγκρουση, μάχη, σύρραξη
^ this is what was copied from that row
 
tampermonkey
ah, it was disabled for some reason, sorry!
 
:D
 

« first day (1399 days earlier)      last day (40 days later) »