PluginProbe
Disable Comments & Delete All Comments / trunk
Disable Comments & Delete All Comments vtrunk
1.3.3 1.3.2 trunk 1.0.0 1.0.4 1.0.5 1.0.8 1.0.9 1.1.1 1.1.3 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.3.0 1.3.1
comments-plus / assets / js / url-span.js

url-span.js in Disable Comments & Delete All Comments trunk, at assets/js/url-span.js

26 lines 664 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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