Author: Andras Guseo
Release date: April 26, 2020
This is a tool created for the Support Team at Modern Tribe | The Events Calendar.
The sniffer will check the following attributes on the page:
- Is it Single Event view?
- Which editor was used? Classic or Block?
- Is it V1 or V2 design?
- Is this a default calendar page or was it generated by a shortcode?
- Built-in shortcode
- The Events Calendar Shortcode & Block
- The Events Calendar Shortcode and Templates Addon
- Theme used
- WordPress version
- TEC version
- ECP version
- Filter Bar version
- ET version
- ET+ version
- WooCommerce version
The sniffer checks for the presence of the following caching plugins:
- Autoptimize
- WP-Super-Cache
- WP Fastest Cache
- W3 Total Cache
- Hummingbird
- WP Rocket
This tool is meant to be used as a bookmarklet.
- Copy the one-line script from
tribe-sniffer.min.js
to your clipboard. - In your preferred browser create a new bookmark button on the bookmark bar.
- Name it "Tribe Sniffer" or whatever you like.
- Paste the code into the location / URL field and save it.
- When visiting a webpage click on the bookmark button. A popup dialog will contain the information.
The non-minified file is a TamperMonkey script. It will run on the websites defined with @match
.
Also, the dialog box will pop up on every pageload, which can be annoying. :)
To use it as a bookmarklet you will need to minimize the script. You can use an online tool like https://javascript-minifier.com/
Here are the steps to create a bookmarklet from the code:
- Take the code without the header (starting with
(function
) and run it through the minifier. - Change the beginning from
!function()
tojavascript:(function()
. (Delete!
and addjavacript:(
.) - Change the end from
}();
to})();
. (Add a closing parentheses)
after the curly bracket}
.) - Select the minified code and copy it on your clipboard.
- In your preferred browser create a new bookmark button on the bookmark bar.
- Name it "Tribe Sniffer" or whatever you like.
- Paste the code into the location / URL field and save it.
- When visiting a webpage click on the bookmark button. A popup dialog will contain the information.
This is what you will approximately get when clicking the button.