Page 1 of 1

Bookmarklets and Private Browsing

Posted: Tue Jun 05, 2012 7:54 am
by RayV
Hi,
First let me say "Thank you". This addon has taken a lot of the pain out of my keister for doing everyones searches in my family.

I use private browsing and assorted addons to block everything from flash adds to redirects to autodownloads, and have noticed that in the recent past I can no longer use the google bookmarklet as soon as I click start private browsing. I have to either go to a site or i created a link to about:blank which works, but used to I could just click "Private browsing" then click the google bookmarklet which prompts me for what I am searching and off we would go. I have tried resetting averything and still nothing. I am running 2.4.4 of NS. Any suggestions would be appreciated.
Thank you.

Re: Bookmarklets and Private Browsing

Posted: Tue Jun 05, 2012 9:17 am
by Giorgio Maone
  1. Could you show me the code of this bookmarklet?
  2. Does it work when you're not in Private Browsing mode?
  3. Does it work if NoScript is disabled?

Re: Bookmarklets and Private Browsing

Posted: Thu Jun 07, 2012 7:27 pm
by RayV
Here is the code of one of the bookmarklets, none seem to work. I did however discover that it is not NOS that is causing the issue. Firefox itself has changed something in the the last update or so that prevents it from firing any bookmarklets of mine from that particular point. I can duplicate it every time even if NOS is disabled.
Step 1. Click "Start Private Browsing".
Step 2. Click any Bookmarklet.
None of mine seem to work at that point. I can go to any web page or open a blank page and they will work on that page, but as long as I am on the initial "about:privatebrowsing" page none seem to work.

here is a simple bookmarklet to pop up an ascii chart. It will not work on that initial page either.

javascript:function%20C(v){return%20'<td>'+v+'</td><td>'+((v>>4).toString(16)+(v&15).toString(16)).toUpperCase()+'</td><td%20bgcolor=DDDDDD>&'+'#'+v+';</td>';}var%20c=4,b=Math.ceil(224/c),a='<table%20border=0><tr>';for(j=0;j<c;j++){a+='<td>DEC</td><td>HEX</td><td>ASC</td>';}a+='</tr>';for(i=33;i<33+b;i++){a+='<tr>';for(j=0;j<c;j++){t=i+(j*b);if(t<=255)a+=C(t);}a+='</tr>';}a+='</table>';var%20W=open('','','width=500,height=600,left=0,top=0,resizable,scrollbars');void(W.document.write(a));

Sorry to have bothered the forum with this was out of ideas and up to my neck at the time.
Thank you for your response.

Re: Bookmarklets and Private Browsing

Posted: Thu Jun 07, 2012 9:28 pm
by GµårÐïåñ
Works fine for me.

Output is a table of dec/hex/asc:

Code: Select all

DEC	HEX	ASC	DEC	HEX	ASC	DEC	HEX	ASC	DEC	HEX	ASC
33	21	!	89	59	Y	145	91	‘	201	C9	É
34	22	"	90	5A	Z	146	92	’	202	CA	Ê
35	23	#	91	5B	[	147	93	“	203	CB	Ë
36	24	$	92	5C	\	148	94	”	204	CC	Ì
37	25	%	93	5D	]	149	95	•	205	CD	Í
38	26	&	94	5E	^	150	96	–	206	CE	Î
39	27	'	95	5F	_	151	97	—	207	CF	Ï
40	28	(	96	60	`	152	98	˜	208	D0	Ð
41	29	)	97	61	a	153	99	™	209	D1	Ñ
42	2A	*	98	62	b	154	9A	š	210	D2	Ò
43	2B	+	99	63	c	155	9B	›	211	D3	Ó
44	2C	,	100	64	d	156	9C	œ	212	D4	Ô
45	2D	-	101	65	e	157	9D		213	D5	Õ
46	2E	.	102	66	f	158	9E	ž	214	D6	Ö
47	2F	/	103	67	g	159	9F	Ÿ	215	D7	×
48	30	0	104	68	h	160	A0	 	216	D8	Ø
49	31	1	105	69	i	161	A1	¡	217	D9	Ù
50	32	2	106	6A	j	162	A2	¢	218	DA	Ú
51	33	3	107	6B	k	163	A3	£	219	DB	Û
52	34	4	108	6C	l	164	A4	¤	220	DC	Ü
53	35	5	109	6D	m	165	A5	¥	221	DD	Ý
54	36	6	110	6E	n	166	A6	¦	222	DE	Þ
55	37	7	111	6F	o	167	A7	§	223	DF	ß
56	38	8	112	70	p	168	A8	¨	224	E0	à
57	39	9	113	71	q	169	A9	©	225	E1	á
58	3A	:	114	72	r	170	AA	ª	226	E2	â
59	3B	;	115	73	s	171	AB	«	227	E3	ã
60	3C	<	116	74	t	172	AC	¬	228	E4	ä
61	3D	=	117	75	u	173	AD	­	229	E5	å
62	3E	>	118	76	v	174	AE	®	230	E6	æ
63	3F	?	119	77	w	175	AF	¯	231	E7	ç
64	40	@	120	78	x	176	B0	°	232	E8	è
65	41	A	121	79	y	177	B1	±	233	E9	é
66	42	B	122	7A	z	178	B2	²	234	EA	ê
67	43	C	123	7B	{	179	B3	³	235	EB	ë
69	45	E	125	7D	}	181	B5	µ	237	ED	í
70	46	F	126	7E	~	182	B6	¶	238	EE	î
71	47	G	127	7F		183	B7	·	239	EF	ï
72	48	H	128	80	€	184	B8	¸	240	F0	ð
73	49	I	129	81		185	B9	¹	241	F1	ñ
74	4A	J	130	82	‚	186	BA	º	242	F2	ò
75	4B	K	131	83	ƒ	187	BB	»	243	F3	ó
76	4C	L	132	84	„	188	BC	¼	244	F4	ô
77	4D	M	133	85	…	189	BD	½	245	F5	õ
78	4E	N	134	86	†	190	BE	¾	246	F6	ö
79	4F	O	135	87	‡	191	BF	¿	247	F7	÷
80	50	P	136	88	ˆ	192	C0	À	248	F8	ø
81	51	Q	137	89	‰	193	C1	Á	249	F9	ù
82	52	R	138	8A	Š	194	C2	Â	250	FA	ú
83	53	S	139	8B	‹	195	C3	Ã	251	FB	û
84	54	T	140	8C	Œ	196	C4	Ä	252	FC	ü
85	55	U	141	8D		197	C5	Å	253	FD	ý
86	56	V	142	8E	Ž	198	C6	Æ	254	FE	þ
87	57	W	143	8F		199	C7	Ç	255	FF	ÿ
88	58	X	144	90		200	C8	È