Skip to content

Instantly share code, notes, and snippets.

Avatar

Simone Rescio srescio

View GitHub Profile
@srescio
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
(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 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 = [];
$('td.ip').each(function(){
var ip = $(this).text();
allIP.push(ip);
})
console.log( allIP.join('\n') );
@srescio
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:
http://dev.w3.org/csswg/css-device-adapt/#the-atviewport-rule
<-->
<meta name="viewport">
You can’t perform that action at this time.