User

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

< User:Nicolas NALLET

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

Revision as of 06:41, 3 June 2021

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

$('div#P19 .wb-external-id').after(link2WikipediaFix);
alert(link2WikipediaFix);