Skip to content

Instantly share code, notes, and snippets.

View masckmaster2007's full-sized avatar
🦃
🦃

Jean masckmaster2007

🦃
🦃
View GitHub Profile
@masckmaster2007
masckmaster2007 / notifications.js
Created May 4, 2024 11:03
Notification API Example
Notification.requestPermission().then(permission => {
if(permission !== "granted") return; // User refused notifications
const image = "https://dgdps.ix.tc/gd.png"; // Logo for notification
const target = "https://dgdps.us.to"; // Website to open if user clicks on it
const title = "Test"; // Notification title
const msg = "Salut"; // Notification body message
const notify = new Notification(title, { body: msg, icon: image }); // Builds notification
notify.onclick = function () {
window.open(target); // Open site
notify.close(); // Closes notification (x)
@masckmaster2007
masckmaster2007 / setup.md
Last active June 14, 2024 19:55
DindeGDPS' dgdps:// protocol - Creating a custom and compatible GDPS

Setting up a custom GDPS

You'll need:

  • A web server (hosting static sites)
  • Your GDPS
  • A brain

Note

Latest versions of DindeGDPS now support web hosts that add blank new lines! GitHub Pages can now be used!

1. Structure