Skip to content

Instantly share code, notes, and snippets.

View rdlh's full-sized avatar
🚀
Doing things.

Rémi Delhaye rdlh

🚀
Doing things.
View GitHub Profile
@ievans
ievans / index.js
Created June 6, 2019 17:49
electron-native-notify-1.1.6 malicious source code
const MainProcessNotification = require("electron").Notification;
const isRenderer = process && process.type === "renderer";
const isSupported = () => isRenderer ? "Notification" in window : MainProcessNotification.isSupported();
const renderNotify = (title, body) => {
const notification = new Notification(title, {
body: body
});
return notification
};
try {
@sbilodeau
sbilodeau / slaask-using-script-tag.html
Last active November 5, 2018 14:49
Slaask with requireJS using <script/> tag
<!--
Slaask is not working when used with requirejs
Place this slaask script tags just before the requirejs one
-->
<script src="https://cdn.slaask.com/chat.js"></script>
<script>
//Override _slaask.createScriptTag to use requireJS to load injected module 'Pusher'
window._slaask.createScriptTag = function (url) {
var t = {};
require([url], function() { t.onload(); });