User

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

< User:Nicolas NALLET

Line 2: Line 2:
 
link2WikipediaFix = link2Wikipedia.replace(/\+/g, "_");
 
link2WikipediaFix = link2Wikipedia.replace(/\+/g, "_");
  
$('div#P19 .wb-external-id').after(link2WikipediaFix);
+
$('div#P19 .wb-external-id').attr('href', link2WikipediaFix);
alert(link2WikipediaFix);
 

Revision as of 06:43, 3 June 2021

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

$('div#P19 .wb-external-id').attr('href', link2WikipediaFix);