Skip to content

Instantly share code, notes, and snippets.


Simone Rescio srescio

View GitHub Profile
srescio / twitterUpdater.js
Last active Aug 29, 2015
Keeps the Twitter messages box fixed on the left and auto-updates incoming tweets while keeping the page scroll on currently visible content, like on the smartphone apps; Paste in browser's console and run to use it
View twitterUpdater.js
// Cleanup sidebar to save space
// Move tweet box into sidebar
$('.timeline-tweet-box img').remove();
srescio / YOURLSbatchDelete.js
Last active Aug 29, 2015
YOURLS js console IP batch listing & delete
View YOURLSbatchDelete.js
//Get all IPs to add in YourlsBlacklistIPs plugin for manual blacklisting
var allIP = [];
var ip = $(this).text();
console.log( allIP.join('\n') );
srescio / viewport.html
Last active Aug 29, 2015
apple specific viewport, not w3c standard
View viewport.html
Non-standard, got spread with iPhone's Safari since 2007,
Viewport is officially meant to be manipulated via CSS as per W3C specs:
<meta name="viewport">