Skip to content

Instantly share code, notes, and snippets.

View srescio's full-sized avatar

Simone Rescio srescio

View GitHub Profile
@srescio
srescio / twitterUpdater.js
Last active August 29, 2015 14:11
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
(function(){
// Cleanup sidebar to save space
$('.wtf-module').remove();
$('.module.trends').remove();
$('.Footer.module').remove();
// Move tweet box into sidebar
$('.timeline-tweet-box').appendTo('.dashboard-left');
$('.timeline-tweet-box img').remove();
@srescio
srescio / YOURLSbatchDelete.js
Last active August 29, 2015 14:07
YOURLS js console IP batch listing & delete
//Get all IPs to add in YourlsBlacklistIPs plugin for manual blacklisting
var allIP = [];
$('td.ip').each(function(){
var ip = $(this).text();
allIP.push(ip);
})
console.log( allIP.join('\n') );
@srescio
srescio / viewport.html
Last active August 29, 2015 14:04
apple specific viewport, not w3c standard
<!-->
Non-standard, got spread with iPhone's Safari since 2007,
Viewport is officially meant to be manipulated via CSS as per W3C specs:
http://dev.w3.org/csswg/css-device-adapt/#the-atviewport-rule
<-->
<meta name="viewport">