Skip to content

Instantly share code, notes, and snippets.

@Zegnat
Created May 1, 2012 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Zegnat/2568295 to your computer and use it in GitHub Desktop.
Save Zegnat/2568295 to your computer and use it in GitHub Desktop.
Redirect Tumblr page to day page. [JS]
(function(a){
if (!0{block:DayPage}1{/block:DayPage} && a) {
window.location.replace('/day/'+a+'/');
}
})([''{block:Posts}{block:Date}{block:NewDayDate},'{Year}/{MonthNumberWithZero}/{DayOfMonthWithZero}'{/block:NewDayDate}{/block:Date}{/block:Posts}][1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment