My day 2010-10-07

Today i made a greasmonkey-script for putting shared notes on websites.
One persson can add a note to a webpage they visiting, when that persson or
someone else in the same sharing-group visit that website, the note will apear.

// ==UserScript==
// @name           url_notes
// @namespace      url_notes
// @description    keep notes on urls
// ==/UserScript==

var category = GM_getValue('url_note_category', '');

if(!category)
{
	change_category();
	category = GM_getValue('url_note_category', 'test');
}

function change_category()
{
	category = prompt("Välj en kategori/grupp", GM_getValue('url_note_category', ''));
	GM_setValue('url_note_category', category);
}

GM_registerMenuCommand("Change note category", change_category);
GM_registerMenuCommand("Add a note to this page", add_note);

get_notes(category, document.location.href, false);

function add_note()
{
	var category = GM_getValue('url_note_category', 'test');
	get_notes(category, document.location.href, true);
}

function get_notes(category, url, force)
{
	GM_xmlhttpRequest(
	{
		method: "POST",
		url: "https://www.exemple.se/url_notes.php",
		data: "category=" + urlencode(category) + "&url=" + urlencode(url) + "&",
		headers:
		{
			"Content-Type": "application/x-www-form-urlencoded"
		},
		onload: function(response)
		{
			var text = "";
			text += "<div style='float: right; cursor: pointer;' onclick=\"document.getElementById('note_box_div').parentNode.removeChild(document.getElementById('note_box_div'))\"><b>X</b></div>";
			text += "<div onmousedown='dragStart(event, \"note_box_div\")' style='background-color: orange; height: 15px;'>Antekningar</div>";
			if(response.responseText.length > 2)
			{
				var notes = eval("(" + response.responseText + ")");
				for(key in notes)
				{
					text += notes[key]['note'] + " <br /> /" + notes[key]['author'] + "<br/> " + notes[key]['birth'] + "<br /><hr />";
				}
				force = true;
			}
			if(force)
			{
				text += "<form action='https://www.exemple.se/url_notes.php' method='post'>";
				text += "<textarea name='note'></textarea><br/>";
				text += "<input type='submit' value='spara'/>";
				text += "<input type='hidden' name='url' value='" + urlencode(url) + "'/>";
				text += "<input type='hidden' name='category' value='" + urlencode(category) + "'/>";
				text += "</form>";
				var notes_div = document.createElement('div');
				notes_div.setAttribute('style', 'position: absolute; left: ' + (document.body.clientWidth -350) + 'px; right: auto; top: 100px; bottom: auto; width: 300px; height: auto; background-color: yellow; border: solid black 3px;');
				notes_div.innerHTML = text;
				notes_div.id = 'note_box_div';
				document.getElementsByTagName('body')[0].appendChild(notes_div);
				var dyn_script = document.createElement('script');
				dyn_script.src = "https://www.interfaceways.se/src/js/dynamic_boxes.js";
				document.getElementsByTagName('body')[0].appendChild(dyn_script);
			}
		}
	});
}

function urlencode(str)
{
   return escape(str).replace('+', '%2B').replace('%20', '+').replace('*', '%2A').replace('/', '%2F').replace('@', '%40');
}

Written by Puggan, 2010-10-07 19:10:11 CEST (+0200)

One response to “My day 2010-10-07”

  1. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Truly loads of good information.

    buying generic viagra without prescription viagra free samples
    viagra pills
    extra strong viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  2. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Reliable information. With thanks!

    discount viagra cialis how much viagra can you take
    viagra generic
    funny weather viagra maps – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  3. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Useful forum posts. Thank you.

    12 generic viagra overnight delivery generic overnight viagra
    viagra without a doctors prescription
    order viagra online – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  4. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    This is nicely put. .

    is viagra covered by insurance best prices for viagra
    viagra without a doctors prescription
    chinese viagra 5 – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  5. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You expressed that really well.

    does viagra work for alcoholics the use of viagra in women
    generic viagra online
    viagra online without prescription $1.00 – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  6. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You actually mentioned that well.

    watermelon mimics viagra fda approved viagra sales
    viagra pills
    viagra in iraq – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  7. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks! An abundance of tips.

    proper use of viagra generic meltabs viagra phpsessid
    viagra for sale uk
    viagra sales in uk – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  8. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Seriously quite a lot of great advice!

    viagra effects after ejaculation why is levitra costlier than viagra
    viagra online
    discount viagra wholesale stores discount pharmacy – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  9. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You have made your point!

    buy generic viagra without prescription blue collar tv skit about viagra
    generic viagra 100mg
    viagra side effects for reynauds – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  10. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Position effectively regarded..

    viagra clipart viagra chep
    viagra without a doctors prescription
    buying viagra in china – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  11. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You have made your point very clearly!.

    cheap viagra prescription online how do i use viagra
    viagra for women
    comparison viagra cialis – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  12. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You revealed that terrifically!

    viagra line discount bulk viagra india
    viagra for women
    generic viagra versus tadalafil – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  13. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Kudos! An abundance of posts!

    fedex viagra no prescriptions viagra australia
    buy viagra
    viagra add url – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  14. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You said it perfectly..

    phentermine and viagra viagra oral jelly
    buy viagra
    roy d mercer viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  15. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You have made your position quite clearly.!

    viagra half dose online viagra consumer check
    viagra for sale uk
    viagra bad experience – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  16. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Appreciate it, An abundance of information.

    watermellon rind viagra compare viagra cialis and levitra
    buy viagra
    viagra type of medicines – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  17. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    With thanks! Great information!

    eye damage from viagra viagra extacy
    viagra without a doctors prescription
    viagra compare cost – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  18. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks! I like this.

    nature’s viagra viagra and gout
    generic viagra
    indications for viagra treatment in women – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  19. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Truly many of valuable info!

    will viagra increase erection subaction showcomments viagra sale posted
    generic viagra online
    viagra in india by mail order – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  20. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Wonderful forum posts. With thanks!

    hydrochlorothiazide with viagra american viagra
    cheap viagra
    coreg and viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  21. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Whoa quite a lot of fantastic info.

    viagra sellers stoke on trent fioricet soma tramadol viagra
    viagra for women
    lowest price viagra america – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  22. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers! Plenty of posts!

    least exspencive viagra viagra online pages edinburgh find free
    generic viagra
    online generic viagra india – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  23. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers. Lots of advice!

    viagra generic form oysters spiked viagra
    viagra pills
    female ingestion of viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  24. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers. A good amount of tips.

    bug viagra nitrous online scams viagra
    viagra without a doctors prescription
    oklahoma city viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  25. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You’ve made your point.

    generic viagra in us viagra motorcycle
    buy viagra
    use viagra who – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  26. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Excellent stuff. Kudos!

    masturbaton and viagra viagra and generic sildenafil citrate silagra
    viagra generic
    pill viagra – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  27. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Amazing posts, Regards!

    viagra sales from canadian pharmacy viagra on sale in france
    viagra online
    viagra and alternatives to – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  28. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Kudos. Plenty of data!

    viagra sverige is generic viagra as good
    viagra 100mg
    efectos del viagra – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  29. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Really plenty of useful knowledge!

    viagra cialis phentermine tramadol viagra
    generic viagra 100mg
    viagra and nitroglycerin – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  30. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Regards! Helpful information!

    vicoden morphine viagra best pharmacy viagra price
    viagra generic
    viagra sideffects – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  31. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Really tons of amazing information.

    viagra for women patch viagra 50m israel prices
    generic viagra
    viagra post haste – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  32. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You’ve made your point!

    natural alternative to viagra adultos mayores viagra
    viagra online
    facebook viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  33. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Beneficial advice. With thanks.

    how to order viagra online discount site viagra
    viagra for women
    viagra car decals – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  34. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    This is nicely said! .

    viagra doctor l a is viagra bad for the heart
    viagra without a doctor prescription
    any medication make viagra less effective – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  35. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Seriously tons of great data.

    viagra vrs livetra viagra wife joke
    buy viagra
    viagra and use in women – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  36. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You suggested this very well.

    drug interactions with viagra german viagra substitutes
    buy generic viagra
    viagra and lasting longer – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  37. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Wow tons of terrific advice!

    next day viagra delivery viagra cures premature ejaculation ed
    viagra without a doctors prescription
    canada medication viagra – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  38. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    With thanks, Good information!

    free viagra give boys viagra
    cheap viagra
    canadian drugs viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  39. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Amazing write ups. Thanks.

    viagra ingredients release viagra and dosage
    viagra generic
    free viagra font – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  40. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You explained that very well!

    over the counter viagra australia walmart price for viagra
    generic viagra online
    viagra 250mg – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  41. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Terrific content, Cheers.

    viagra for cheap safety of generic viagra
    viagra without a doctors prescription
    free sex viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  42. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Effectively spoken really! .

    buy viagra cheapest does viagra expire
    generic viagra
    canadaian pharmacy viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  43. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks, I enjoy this.

    prescribe viagra viagra natrual
    viagra pills
    medical side affects of viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  44. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You expressed this really well!

    viagra uk cost pill viagra use for enlarged heart 2011
    viagra for women
    blue pill viagra india sildenafil citrate – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  45. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Fine tips. Cheers!

    before viagra viagra multiple orgasms
    generic viagra
    purchasing viagra in venezuela – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  46. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thank you, Good stuff.

    viagra on heart medication viagra juice
    viagra without a doctor prescription
    cheap viagra costco – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  47. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You suggested it perfectly!

    viagra find sites computer edinburgh comment viagra soft tabs review
    viagra pills
    theres viagra in the waters – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  48. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Excellent knowledge. Thanks.

    viagra sex shops viagras speed
    buy viagra
    rude viagra cartoons – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  49. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put. Thank you.

    viagra email from friend url viagra href
    viagra 100mg
    street price of viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  50. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You said it adequately..

    viagra what is viagra after prostate surgery
    viagra without a doctor prescription
    generic viagra professional – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  51. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Seriously a lot of amazing information!

    virus viagra viagra brisbane
    cheap viagra
    weight loss and viagra uk – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  52. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks a lot. An abundance of data.

    information about viagra for kids online viagra soft
    buy generic viagra
    viagra next day uk – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  53. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Truly plenty of superb data.

    generic viagra truth where to order cheap viagra
    viagra online
    what viagra does – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  54. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers. I enjoy this.

    viagra dosage requirements viagra and blood pressure meds
    buy viagra
    viagra online a href – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  55. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Regards. I appreciate it.

    viagra kamagra uk lung diseases treated with viagra
    viagra without a doctors prescription
    the miller firm won viagra lawsuit – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  56. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks, Wonderful information.

    contraindication epinephrine viagra is viagra safe for diabetics
    viagra pills
    otc alternitives for viagra – https://genericviagrantx.com

    Davidroums
    Terenceprems
    VictorFep

  57. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks. A lot of information!

    viagra female testimonials using levitra and viagra together
    cheap viagra
    viagra and anger side effects – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  58. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You revealed it exceptionally well!

    novartis viagra uk viagra mitral valve prolapse
    viagra pills
    women taking viagra female – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  59. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Kudos. Quite a lot of forum posts.

    viagra discount coupons viagra alcohaol
    viagra without a doctor prescription
    safe dose of viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

  60. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You explained that effectively!

    cialis get viagra kamagra viagra generica
    generic viagra
    ringtone viva viagra – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  61. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks a lot. I like it.

    zocor alternative viagra viagra effect men
    buy viagra online
    viagra did not work – https://genericviagramsl.com

    Davidroums
    Terenceprems
    VictorFep

  62. Andreweager says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Well voiced genuinely. .

    buy viagra cheap fed ex buy viagra free shipping
    buy viagra online
    womens natural viagra – https://genericviagrarcp.com

    Davidroums
    Terenceprems
    VictorFep

Leave a Reply

Your email address will not be published. Required fields are marked *