function cell_Link_Activate(cell) {
let value = cell.getValue();
cell.setRichTextValue(SpreadsheetApp.newRichTextValue()
.setText(value)
.setLinkUrl(value)
.build());
}
/**
* @param {globalThis.SpreadsheetApp.Range} range
*/
function cell_Link_Activate_(range) {
const values = range.getValues();
const rtvsOld = range.getRichTextValues();
const rtvs = values.map((row, x) => row.map((cell, y) => {
if (cell !== '') {
const rtv = SpreadsheetApp.newRichTextValue()
.setText(cell)
.setLinkUrl(cell)
.build();
return rtv;
}
return rtvsOld[x][y];
}));
range.setRichTextValues(rtvs);
}