Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
easycookieconsent
Advanced tools
Readme
This is an easy Javascript for cookie acceptance popup on your website. You can modify text, text-color, urls, popup position and more. After clicking the "Got It" button, the acceptance will be remembered in the browser cookie.
https://tungdmctv.github.io/easy-cookie-consent/
<script src="https://unpkg.com/easycookieconsent@1.0.6/cookieAccept.min.js"> </script>
<script>
const cookieConsent = new CookieAccept({
domain: "https://yourdomain.com",
dayExpire: 60,
url: {
privacyPolicy: "https://yourdomain.com/privacy",
cookiePolicy: "https://yourdomain.comv/cookie",
target: "_blank",
},
align: "right",
});
cookieConsent.init();
</script>
// ALL Config value
const config = {
domain: "https://yourdomain.com",
dayExpire: 60,
text: {
header: "This website uses cookies",
body: "We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.",
privacyPolicy: "PrivacyPolicy",
learnMore: "Learn More",
accept: "Got it!",
},
bgColor: "#F3F4F6",
textColor: "#1F2937",
buttonColor: "#6366F1",
buttonTextColor: "#FFFFFF",
buttonBorderColor: "#FFFFFF",
linkColor: "#2563EB",
url: {
privacyPolicy: "https://yourdomain.com/privacy",
cookiePolicy: "https://yourdomain.comv/cookie",
target: "_blank",
},
align: "right", // left center right
};
const cookieConsent = new CookieAccept(config);
cookieConsent.init();
// ค่า Default ทั้งหมด
const cookieConsent = new CookieAccept({
domain: "localhost",
dayExpire: 60,
text: {
header: "เว็บไซต์นี้ใช้คุกกี้",
body: "เราใช้คุกกี้เพื่อวิเคราะห์การเข้าใช้งาน และทำความเข้าใจว่าผู้ใช้งานมาจากที่ใด สามารถเลือกตั้งค่าความยินยอมการใช้คุกกี้ได้ โดย “ตั้งค่าคุกกี้ใน Browser ของคุณ”",
privacyPolicy: "นโยบายความเป็นส่วนตัว",
learnMore: "เรียนรู้เพิ่มเติม",
accept: "ยอมรับ",
},
bgColor: "#F3F4F6",
textColor: "#1F2937",
buttonColor: "#6366F1",
buttonTextColor: "#FFFFFF",
buttonBorderColor: "#FFFFFF",
linkColor: "#2563EB",
url: {
privacyPolicy: "https://video.dmc.tv/privacy",
cookiePolicy: "https://video.dmc.tv/cookie",
target: "_blank",
},
align: "right",
});
cookieConsent.init();
FAQs
Easy Cookie Consent Popup
The npm package easycookieconsent receives a total of 209 weekly downloads. As such, easycookieconsent popularity was classified as not popular.
We found that easycookieconsent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.