Skip to content

Instantly share code, notes, and snippets.

View francescosalvi's full-sized avatar

Francesco Salvi francescosalvi

View GitHub Profile
const RequestAction = {
ACCEPT: 'accept',
ACCEPT_FREE: 'accept_free',
DECLINE: 'decline',
CHANGE: 'change',
PAY: 'pay',
WRITE: 'write',
SEND: 'send',
CLOSE: 'close',
CANCEL: 'cancel',
const RequestAction = {
ACCEPT: 'accept',
ACCEPT_FREE: 'accept_free',
DECLINE: 'decline',
CHANGE: 'change',
PAY: 'pay',
WRITE: 'write',
SEND: 'send',
CLOSE: 'close',
CANCEL: 'cancel',
{
"results_size": 50,
"results": [
{
"id": "151",
"title": "[1366] Grilled lil onions 320g",
"description": "[Mariangela Prunotto] <p>Mariangela Prunotto ha voluto racchiudere in un barattolo tutto il sapore delle squisite cipolline coltivate nei territori di Alba, per offrire un antipasto gustoso.<br /><br />A partire dalla mate…",
"image_url": "http://eataly-bbb-m2.docker/media/catalog/product/M/a/Mariangela-Prunotto-Cipolline-Alla-Brace-320g-1366.jpg",
"last_update": 1608223159,
"blob": {
@francescosalvi
francescosalvi / di.fm-force-playback.js
Created May 31, 2018 13:55
DI.fm uninterrupted playback
// Dismisses "Are you still there?" message popup on di.fm free accounts, immediately resuming playback.
// Load in page using extensions like https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
// (no need to import jQuery as it's already avaiabled on the website)
$(document).ready(function(){
// auto start playing
$('.ico.icon-play').closest('div').click()
window.setInterval(function(){
// if interrupting modal is open, close it
$('button.close[data-dismiss="modal"]').click()
}, 5000)