From 5c6bac24a63302b100d285c8226f2e3a9f96a6f6 Mon Sep 17 00:00:00 2001 From: jeena Date: Sun, 25 Nov 2012 13:41:38 -0800 Subject: [PATCH] Updated Plugins (markdown) --- Plugins.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Plugins.md b/Plugins.md index 8cea7fb..5a95de2 100644 --- a/Plugins.md +++ b/Plugins.md @@ -51,24 +51,3 @@ And add this to your CSS plugin file. .selected { border-right: 5px solid green; } - -## Fuzzy location plugin - - if (tentia_instance.action == "timeline") { - (function() { - var fuzzyness = 1; // Set how fuzzy it should be rounded. 0 ≈ country, 1 ≈ city, 6 = very exact - function shortenDecimals(number, decimals) { - return Math.round(number * Math.pow(10, decimals)) / Math.pow(10, decimals); - } - tentia_instance.original_sendNewMessage = tentia_instance.sendNewMessage; - tentia_instance.sendNewMessage = function(content, in_reply_to_status_id, in_reply_to_entity, location) { - if (location) { - location = [ - shortenDecimals(location[0], fuzzyness), - shortenDecimals(location[1], fuzzyness) - ]; - } - tentia_instance.original_sendNewMessage(content, in_reply_to_status_id, in_reply_to_entity, location); - } - })(); - } \ No newline at end of file