Skip to content

Commit

Permalink
Revert "Add Common Room and RB2B scripts (#12355)" (#12357)
Browse files Browse the repository at this point in the history
This reverts commit d164ffb.
  • Loading branch information
cnunciato authored Jul 24, 2024
1 parent d164ffb commit c85971e
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@
</script>

<script async defer src="https://buttons.github.io/buttons.js"></script>

{{- if eq hugo.Environment "production" }}
<!-- Clearbit snippet -->
<script src="https://tag.clearbitscripts.com/v1/pk_54e7d7c428c6d5e79098374d93a7b333/tags.js" referrerpolicy="strict-origin-when-cross-origin"></script>
Expand Down Expand Up @@ -382,44 +381,9 @@

<!-- Facebook Domain Verification -->
<meta name="facebook-domain-verification" content="phlf6qes2bxa9ufzk8zt2es0qivg8j" />

<!-- Common Room-->
<script>
(function() {
if (typeof window === 'undefined') return;
if (typeof window.signals !== 'undefined') return;
var script = document.createElement('script');
script.src = 'https://cdn.cr-relay.com/v1/site/a725b5ba-75f1-44dc-b250-11023fc10b9d/signals.js';
script.async = true;
window.signals = Object.assign(
[],
['page', 'identify', 'form'].reduce(function (acc, method){
acc[method] = function () {
signals.push([method, arguments]);
return signals;
};
return acc;
}, {})
);
document.head.appendChild(script);
})();
</script>

<!-- RB2B -->
<script>
!function () {var reb2b = window.reb2b = window.reb2b || [];
if (reb2b.invoked) return;reb2b.invoked = true;reb2b.methods = ["identify", "collect"];
reb2b.factory = function (method) {return function () {var args = Array.prototype.slice.call(arguments);
args.unshift(method);reb2b.push(args);return reb2b;};};
for (var i = 0; i < reb2b.methods.length; i++) {var key = reb2b.methods[i];reb2b[key] = reb2b.factory(key);}
reb2b.load = function (key) {var script = document.createElement("script");script.type = "text/javascript";script.async = true;
script.src = "https://s3-us-west-2.amazonaws.com/b2bjsstore/b/" + key + "/reb2b.js.gz";
var first = document.getElementsByTagName("script")[0];
first.parentNode.insertBefore(script, first);};
reb2b.SNIPPET_VERSION = "1.0.1";reb2b.load("Y4O7Z0HKLKNX");}();
</script>
{{- end }}


<!-- Apply anchor links to headings in the docs, blog and taxonomy pages. -->
{{ if and (not .IsHome) (.Section) (in "docs blog authors tags registry" .Section) }}
<script async defer src="//cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js"></script>
Expand Down

0 comments on commit c85971e

Please sign in to comment.