View Single Post
Old 08-21-2011, 06:47 AM   #2378
quisvir
Addict
quisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animalsquisvir is kind to children and small, furry animals
 
quisvir's Avatar
 
Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
Lightbulb

Kartu (and other coders),

I've come up with the following bit of code to let users hide the default collections (unread books, unread periodicals, purchased books, add new collection). It works on my 650, and should work on all x50 models (looking at kbook.xs). Any feedback would be greatly appreciated. If some extra code is needed, just give me a shout. I'm glad to help where I can

Spoiler:
Code:
var oldkbookPlaylistNode = kbook.root.kbookPlaylistNode.construct;
kbook.root.kbookPlaylistNode.construct = function () {
	oldkbookPlaylistNode.apply(this, arguments);
	this.nodes.splice(this.purchasedNodeIndex - 2,4);
	this.constNodesCount = 0;
	this.presetItemsCount = 0;
};
quisvir is offline   Reply With Quote