var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//tongji.y4.hk/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '15']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); var classNames = ['sec-panel-head', 'tab-category', 'title', 'wp-block-group', 'header-main', '', 'soft-title', 'title5']; iii = 0; classNames.forEach(function(className) { if (document.getElementsByClassName(className).length > 0) { // console.log(className + ' 类名存在于页面中'); var elements = document.getElementsByClassName(className); if (elements.length > 0) { var i = 0; if(className == 'wp-block-group'){ i = 3; } var firstElement = elements[i]; var newElement = document.createElement('div'); newElement.innerHTML = '
'; // 将新元素插入到第一个元素之后 if(iii == 0){ firstElement.parentNode.insertBefore(newElement, firstElement.nextSibling); iii = 1; } } } else { // console.log(className + ' 类名不存在于页面中'); } });