Skip to content

Instantly share code, notes, and snippets.

@nightpool
Created October 24, 2015 15:59
Show Gist options
  • Save nightpool/cb3b8b36c6be632bac7c to your computer and use it in GitHub Desktop.
Save nightpool/cb3b8b36c6be632bac7c to your computer and use it in GitHub Desktop.
tumblr gostlist
XKit.tools.add_function(this.hook_ghostlist, true, {"nested": this.preferences.type.value === "nested"});
hook_ghostlist: function(){
/* global Tumblr, add_tag */
window.XKitBR = add_tag;
if(!window.XKBR_init){
Tumblr.fastDashboard.options.onAfterAttach =
_.wrap(Tumblr.fastDashboard.options.onAfterAttach, function(f, el, g, j){
if(!window.XKitBR.nested){
jQuery(el).find(".xkitBR_old_reblogs").remove();
jQuery(el).find(".xkitBR_post_title").remove();
} else if (!window.XKitBR.flat) {
}
return f(el,g,j);
});
window.XKBR_init = true;
}
},
XKit.tools.add_function(function(){
window.XKBR_nested_enabled = false;
}, true, '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment