User

Difference between revisions of "Nicolas NALLET/bluell.js"

< User:Nicolas NALLET

(ok it's working)
(in 2 lines)
Line 1: Line 1:
var link2Wikipedia = $( 'div#P19 .wb-external-id' ).attr('href');
+
var link2WikipediaFix = $( 'div#P19 .wb-external-id' ).attr('href').replace(/\+/g, "_");
link2WikipediaFix = link2Wikipedia.replace(/\+/g, "_");
 
 
$('div#P19 .wb-external-id').attr('href', link2WikipediaFix);
 
$('div#P19 .wb-external-id').attr('href', link2WikipediaFix);

Revision as of 06:50, 3 June 2021

var link2WikipediaFix = $( 'div#P19 .wb-external-id' ).attr('href').replace(/\+/g, "_");
$('div#P19 .wb-external-id').attr('href', link2WikipediaFix);