fix: remove twitter APIs

not actually used
This commit is contained in:
Cat /dev/Nulo 2023-08-28 11:48:31 +00:00
parent 1fbc89c988
commit ef27fcf33c
5 changed files with 46 additions and 57 deletions

View file

@ -2,17 +2,4 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script><script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script></body></html>
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script></body></html>

View file

@ -1 +1,42 @@
define("social",["jquery"],function(t){var e={};return e.facebook={share:function(t){var t=t||window.location.href,e=window.open("https://www.facebook.com/sharer/sharer.php?u="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()},feed:function(){FB.ui({method:"feed",name:"",link:"",picture:"",caption:"",description:""},function(t){t&&t.post_id})}},e.twitter={share:function(t){twttr.ready(function(t){t.events.bind("tweet",function(t){})});var e=window.open("https://twitter.com/intent/tweet?text="+t,"popupwindow","scrollbars=yes,width=800,height=400");e.focus()}},e});
define("social", ["jquery"], function (t) {
var e = {};
return (
(e.facebook = {
share: function (t) {
var t = t || window.location.href,
e = window.open(
"https://www.facebook.com/sharer/sharer.php?u=" + t,
"popupwindow",
"scrollbars=yes,width=800,height=400"
);
e.focus();
},
feed: function () {
FB.ui(
{
method: "feed",
name: "",
link: "",
picture: "",
caption: "",
description: "",
},
function (t) {
t && t.post_id;
}
);
},
}),
(e.twitter = {
share: function (t) {
var e = window.open(
"https://twitter.com/intent/tweet?text=" + t,
"popupwindow",
"scrollbars=yes,width=800,height=400"
);
e.focus();
},
}),
e
);
});

View file

@ -2,17 +2,4 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script><script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script></body></html>
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script></body></html>

View file

@ -2,17 +2,4 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script><script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script></body></html>
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script></body></html>

View file

@ -2,17 +2,4 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script><script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script></body></html>
})(window,document,'script','dataLayer','GTM-PMVMJ4');</script></body></html>