PluginProbe ʕ •ᴥ•ʔ
Post Views Counter / trunk
Post Views Counter vtrunk
1.7.13 1.7.12 1.7.11 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.2 1.3.2.1 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.7.0 1.7.1 1.7.10 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9
post-views-counter / js / counter.js
post-views-counter / js Last commit date
admin-columns.js 5 months ago admin-dashboard.js 2 weeks ago admin-post.js 5 months ago admin-quick-edit.js 2 weeks ago admin-settings.js 2 weeks ago admin-theme.js 5 months ago admin-widgets.js 5 months ago block-editor.js 5 months ago counter.js 5 months ago frontend.js 2 weeks ago integration-gutenberg.js 5 months ago
counter.js
2 lines
1 function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(n)}window.PostViewsCounterManual={init:function(n){var t=this,e={action:"pvc-view-posts",pvc_nonce:n.nonce,ids:n.ids},c=Object.keys(e).map(function(o){return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(e[o]))}).join("&").replace(/%20/g,"+");return fetch(n.url,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:c}).then(function(o){if(!o.ok)throw Error(o.statusText);return o.json()}).then(function(n){try{"object"===o(n)&&null!==n&&t.triggerEvent("pvcCheckPost",n)}catch(e){console.log("Invalid JSON data"),console.log(e)}}).catch(function(o){console.log("Invalid response"),console.log(o)})},triggerEvent:function(o,n){var t=new CustomEvent(o,{bubbles:!0,detail:n});document.dispatchEvent(t)}};
2