| 1 |
/** |
| 2 |
* Url span |
| 3 |
* @author Alex Kovalev <alex.kovalevv@gmail.com>, Github: https://github.com/alexkovalevv |
| 4 |
* @copyright (c) 17.11.2017, Webcraftic |
| 5 |
* @version 1.0 |
| 6 |
*/ |
| 7 |
|
| 8 |
|
| 9 |
(function($) { |
| 10 |
'use strict'; |
| 11 |
|
| 12 |
$(function() { |
| 13 |
$(document).on("click", ".wbcr-clearfy-pseudo-link", function() { |
| 14 |
window.open($(this).data("uri")); |
| 15 |
}); |
| 16 |
|
| 17 |
// Remove href from comment author links for block theme. |
| 18 |
const author_url_elements = $('.wp-block-comment-author-name a'); |
| 19 |
author_url_elements.each(function() { |
| 20 |
const author_url = $(this).attr('href'); |
| 21 |
$(this).removeAttr('href').attr('data-uri', author_url).addClass('wbcr-clearfy-pseudo-link'); |
| 22 |
}); |
| 23 |
}) |
| 24 |
|
| 25 |
})(jQuery); |
| 26 |
|