From 7da2a940309ec449c664573d1fc0d12dd6d88c23 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sat, 11 Oct 2014 01:46:47 +0200 Subject: [PATCH] Added askReadout --- canvasblocker.xpi | Bin 21401 -> 22316 bytes data/inject.js | 192 +++++++++++++++++++--------------------- lib/main.js | 12 +++ locale/de-DE.properties | 4 +- locale/en-US.properties | 4 +- package.json | 6 +- 6 files changed, 115 insertions(+), 103 deletions(-) diff --git a/canvasblocker.xpi b/canvasblocker.xpi index fa0d17cf0d350667f6046393838a040350862348..837eb5fca02e6fdd921fc0c67763155f658c6b1c 100644 GIT binary patch delta 5013 zcmZWtbzD?i*B*vckZzC?kOmRy?ilHo8enLcVTKf81nGvMQ97hkI-~`pOF9KaDTP7F z7w>)Vckg|_^T%2Hti7Lg_V28{)>+R=FUBaZ#30btz{Da4004M^>3cN<(TvFHdm2j5 zWZ>ns7ytk!4gi3EI|+q(I6~bJd_JBoeMwKXHU)@753eX5tU4cB7^#`GRFjf&6H|?9 zO4PH*y3T7(9aIf4s;S|VYkr=Uw9#USTdi;UBupyo@MgS}Rptv3kg86trsRZDUadK? zyj`S|`fE$9@Ofu^qMoZ!IkMlp=Z(s+;gU^^L$_9^a+JPkY4Xy9EBBxaP+RoG;w=SF z^Ujq0NhtqbiE+vnkrCa&wl2R@edpHbjDAaHf%BdE&WC6(cH$k^BbIOUDaiy^E5@-7P_eizI$q3+;xMGS->}p^FIgaa zzU_RD6UuX%Ag>1z@GWqn=n3W*lcppb)+%j6*GH`Iow?)j>h;?DE8bT_^AYT3>dSJ` zOdk2%hZ2Q*<{Z)onDE;4vURm*c*kzRQJa4ITYIQyKfpZS3*Ds5R#xe=wwb9qPS83i zB2dR9FMeT{etuF+;Re!b`vMdo{n@*ci(;jBaQyhG1wK~=c5cb9Rr;|05 zW*yoIvTnVKxb^V;TWJfi1ADr7AoyW$h#e|Gix`<4Q$rXeK(6H7+3f-Bs{NXyvsuv9 zWcrj#GO)hk>8iqX6_s^#Z0(B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en. Wenn dies nicht markiert ist, werden viele Nachfragedialoge erscheinen oder die PDF Ansicht nicht funktionieren. -askForPermission= Wollen Sie erlauben? \ No newline at end of file +askForPermission= Wollen Sie erlauben? +askForReadoutPermission= Wollen Sie das Auslesen von erlauben? \ No newline at end of file diff --git a/locale/en-US.properties b/locale/en-US.properties index 8ba708e..3f6910a 100644 --- a/locale/en-US.properties +++ b/locale/en-US.properties @@ -11,6 +11,7 @@ blockMode_options.block everything= block everything blockMode_options.allow only white list= allow only white list blockMode_options.ask for permission= ask for permission blockMode_options.block readout API= block readout API +blockMode_options.ask for readout API permission= ask for readout API permission blockMode_options.block only black list= block only black list blockMode_options.allow everything= allow everything @@ -20,4 +21,5 @@ askOnlyOnce_description= If a page tries to access the -API several time allowPDFCanvas_title= Allow canvas in PDFs allowPDFCanvas_description= The native pdf.js uses to display the PDF content. If this is unchecked there will lots of annoying ask dialogs or the PDF display will not work. -askForPermission= Do you want to allow ? \ No newline at end of file +askForPermission= Do you want to allow ? +askForReadoutPermission= Do you want to allow readout? \ No newline at end of file diff --git a/package.json b/package.json index 8961171..5f4895a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "name": "blockMode", "title": "block mode", "type": "menulist", - "value": "blockReadout", + "value": "askReadout", "options": [ { "value": "blockEverything", @@ -38,6 +38,10 @@ "value": "blockReadout", "label": "block readout API" }, + { + "value": "askReadout", + "label": "ask for readout API permission" + }, { "value": "blockOnlyBlackList", "label": "block only black list"