PageSourceSearch

https://www.bangordailynews.com/wp-content/plugins/bdn-misc-tweaks/assets/js/frontend.js?ver=1.0.12

js bangordailynews.com collected 2026-10-01 08:29:49 UTC 3,005 bytes, 45 lines download raw bytes

1/**
2 * Plugin Template frontend js.
3 *
4 *  @package WordPress Plugin Template/JS
5 */
6
7jQuery( document ).ready(
8	function ( e ) {
9		// Hide "Use updated calendar designs" in Events Calendar
10		jQuery('#tribe-field-views_v2_enabled').hide();
11		
12		var checkExist = setInterval(function() {
13		   if (jQuery('.tp-backdrop').length) {
14			  jQuery('body').find('.tp-backdrop').css('opacity', 1);
15			  console.log("Exists!");
16			  clearInterval(checkExist);
17		   }
18		}, 200); // check every 100ms
19
20	}
21);
22
23document.addEventListener('DOMContentLoaded', function(event) {
24
25	// This fixes the issue where Post Navigation Widget shows previous in Google News
26	// https://app.clickup.com/t/kpzw1c
27	// I am going to hide it by default
28	jQuery('.meta-nav').hide();
29	jQuery('.sharedaddy').hide();
30
31
32	var botPattern = "(googlebot\/|bot|Googlebot-Mobile|Googlebot-News|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)";
33	var re = new RegExp(botPattern, 'i');
34	var userAgent = navigator.userAgent;
35	if (re.test(userAgent)) {
36		console.log('the user agent is a crawler!');
37		jQuery('.meta-nav').hide();
38		jQuery('.sharedaddy').hide();
39	} else {
40		// Show it if GoogleBot NOT detected
41		jQuery('.meta-nav').show();
42		jQuery('.sharedaddy').show();
43	}
44})
45

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.