Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Pages: 12Next
Current Page: 1 of 2
Alguien me ayuda???
Posted by: Rosner
Date: November 07, 2015 04:03AM

Hola!

Este navegador me ha encantado, consume una cantidad de recursos muy bajo y eso me facilita el trabajo, pero ha sido un dolor de cabeza intentar instalar algunas extensiones de Firefox, alguien me puede ayudar?

Necesito instalar:

Greasemonkey (https://addons.mozilla.org/es/firefox/addon/greasemonkey/)
Strict Pop-up Blocker (https://addons.mozilla.org/es/firefox/addon/strict-pop-up-blocker/)
Super Drag (https://addons.mozilla.org/es/firefox/addon/super-drag/)
Tab Restore (https://addons.mozilla.org/es/firefox/addon/tab-restore/)
Quick Translator (https://www.dropbox.com/s/49h8129888vt3mr/quick_translator-1.0-fx%2Bsm%2Btb.xpi?dl=0)

Yo se que es casi imposible que me ayuden o que le presten importancia, pero hago el intento, nada pierdo.

Y pues si nadie me ayuda, espero que en el futuro mejoren la compatibilidad y/o faciliten la instalación de extensiones, ya que muchas de ellas son necesarias. Hasta el momento lo único que he podido instalar es AdBlock...

Gracias.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 07, 2015 06:31PM

Quote
Rosner
Hola!

Este navegador me ha encantado, consume una cantidad de recursos muy bajo y eso me facilita el trabajo, pero ha sido un dolor de cabeza intentar instalar algunas extensiones de Firefox, alguien me puede ayudar?

Necesito instalar:

Greasemonkey (https://addons.mozilla.org/es/firefox/addon/greasemonkey/)

En este mismo subforo tienes dedicado un hilo a greasmonkey, ahora bien, no esperes que funcione.

Quote
Rosner
Strict Pop-up Blocker (https://addons.mozilla.org/es/firefox/addon/strict-pop-up-blocker/)
Ya tienes un botón para ello. Si no se te vé, ve al menú Ver>Barra de Herramientas>Barra de privacidad.

No sé si está así traducido. A pesar de ser español, yo uso la interfaz de K-meleon en inglés.

Pero te haces una idea con lo que te digo, ¿no?

Quote
Rosner
Super Drag (https://addons.mozilla.org/es/firefox/addon/super-drag/)
Lo que hace esa aplicación ya lo puedes hacer con el menú contextual por defecto (click derecho sobre un link).

También tienes opciones en las preferencias de cómo quieres que se abran los links. (3ª sección de las preferencias, Browsing o Navegando/navegación, según tu idioma de instalación).

Quote
Rosner
Tab Restore (https://addons.mozilla.org/es/firefox/addon/tab-restore/)

Ten en cuenta que esa extensión no funcionará porque usa la interfaz de Firefox Xul y K-meleon usa la nativa de Windows, por tanto, no son compatibles.

De todas formas, no cuesta mucho abrir el historial (CTRL + H) y reabrir la última página. Es lo que hace esa extensión.

Quote
Rosner
Quick Translator (https://www.dropbox.com/s/49h8129888vt3mr/quick_translator-1.0-fx%2Bsm%2Btb.xpi?dl=0)

Eso se puede hacer o está hecho. Ahora no recuerdo si alguien ya hizo una macro (el lenguaje de extensiones de K-meleon) para hacerlo, añadiendo una entrada en el menú para textos seleccionados.


En la librería hay algo, pero no sé si es lo que te interesa:
http://kmeleonbrowser.org/wiki/MacroLibrary

Quote
Rosner
Yo se que es casi imposible que me ayuden o que le presten importancia, pero hago el intento, nada pierdo.

¿?¿?¿?



Quote
Rosner
Y pues si nadie me ayuda, espero que en el futuro mejoren la compatibilidad y/o faciliten la instalación de extensiones, ya que muchas de ellas son necesarias. Hasta el momento lo único que he podido instalar es AdBlock...

Gracias.

Ten en cuenta que toda extensión que utilice la interfaz XUL, no va a funcionar en K-meleon. Usan el mismo motor de renderizado de páginas, Gecko, pero la interfaz de K-meleon es la nativa de Windows.

Puedes abrir ventanas chrome independientes, pero no añadir botones ni interactuar con la interfaz.

Hay personas que adaptan extensiones, pero no se puede con todas.



Edited 2 time(s). Last edit at 11/07/2015 07:00PM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 08, 2015 02:57AM


No need for an addon. Try the attached macro.

Attachments: PriorTabs.kmm (5.7 KB)  
Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: Rosner
Date: November 08, 2015 03:43AM

Hola.

Gracias por tu respuesta, pero lo que me acabas de decir lo puedo hacer con casi cualquier navegador. La idea de usar estas extensiones es facilitar la labor, el bloqueador de popups al igual que el de muchos navegadores no funciona con ciertas páginas y más con la publicidad invasiva y fastidiosa que ni el Adblock la bloquea.

Ocupo Greasemonkey o cualquier equivalente para usar Anti-Adblock Killer y otros scripts.
El Pop Up Blocker para evitar popups de páginas invasivas.
El Super Drag para evitar el click contrario-abrir o hacer clic para abrir el enlace en la misma pestaña.
El restaurador de ventanas para ver las páginas cerradas (historial en el mismo botón) y regresar en la parte donde se cerró.
El traductor para traducir cualquier palabra sobre la marcha, no esperar a que Translate me envíe a otra página.

Yo se que pido mucho.
Lo siento pero como digo yo, "Si no se puede, no se puede".

Gracias, ójala que en el futuro se puedan usar estas extensiones o hagan Macros equivalentes.



Edited 1 time(s). Last edit at 11/08/2015 03:48AM by Rosner.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 08, 2015 07:54PM

Quote
Rosner
Hola.

Gracias por tu respuesta, pero lo que me acabas de decir lo puedo hacer con casi cualquier navegador. La idea de usar estas extensiones es facilitar la labor, el bloqueador de popups al igual que el de muchos navegadores no funciona con ciertas páginas y más con la publicidad invasiva y fastidiosa que ni el Adblock la bloquea.

Ocupo Greasemonkey o cualquier equivalente para usar Anti-Adblock Killer y otros scripts.
El Pop Up Blocker para evitar popups de páginas invasivas.
El Super Drag para evitar el click contrario-abrir o hacer clic para abrir el enlace en la misma pestaña.
El restaurador de ventanas para ver las páginas cerradas (historial en el mismo botón) y regresar en la parte donde se cerró.
El traductor para traducir cualquier palabra sobre la marcha, no esperar a que Translate me envíe a otra página.

Yo se que pido mucho.
Lo siento pero como digo yo, "Si no se puede, no se puede".

Gracias, ójala que en el futuro se puedan usar estas extensiones o hagan Macros equivalentes.


Ya sé que lo que se pretende con las extensiones es facilitar las cosas, pero hay cosas que no pueden ser. Pueden ser, pero no exactamente igual de fácil que con Firefox.

El problema no está en que un día K-meleon soporte mejor o peor las extensiones. Es que ya se soportan, pero como dije y quiero que tengas claro, es que las extensiones de Firefox que interactuen con la interfaz no va a ser posible, nunca, porque son interfaces completamente diferentes.

Se puede crear un sustituto (no siempre), pero si alguien no te ayuda a hacerla, normalmente te tocará aprender un poco del lenguaje de macros y aplicar JavaScript para cosas un poco más complejas.

  • Para Greasemonkey tienes este hilo:
    http://kmeleonbrowser.org/forum/read.php?9,132768

    rodocop dice que funciona. Sigue sus instrucciones.

    .
  • El problema con los popups que mencionas es porque el bloqueo por defecto no cubre todas las opciones. Las páginas se han vuelto más puñeteras y lanzan ventanas con otros métodos que antes no se usaban.

    Para esto habría que hacer una macro con la preferencia "dom.popup_allowed_events", limitando más las opciones por defecto.

    .
  • Esto no se puede hacer. No se puede hacer sin usar JavaScript por lo mencionado más arriba, que K-meleon y Firefox tienen diferentes interfaces.

    Aunque, ahora que me acuerdo, usa los gestos de ratón, si sólo quieres usar el botón izquierdo y tal. Hay un plugin para ello en k-meleon.

    Lo puedes configurar en las preferencias si lo tienes habilitado.

    .
  • La macro que te ha puesto JamesD sirve para eso, salvo para lo de ir a la parte en la que se estaba.

    @JamesD, he requests to also restore the viewport position, not only the last tab. This could be done through javascript, checking the offsetTop and saving to the ini, maybe, and restoring later with scrollTo, if I'm not wrong.

    .
  • No existe una macro o plugin para traducir en la misma página, que yo sepa. Creo que siempre se busca en una nueva ventana/pestaña.

    Mira a ver si esta, modo kiosko, te sirve:
    http://kmeleonbrowser.org/forum/read.php?9,114075

Ya siento no porderte ayudar más. En general son macros muy complejas.

Te recomiendo que abras un hilo para cada una (excepto Greasemonkey, que ya existe) para solicitar que alguien la adapte o que te ayude a crear una macro nueva.

Estamos muy pocos con conocimientos suficientes para adaptarlas, entre los que no me incluyo.



Edited 6 time(s). Last edit at 11/08/2015 08:05PM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: siria
Date: November 08, 2015 08:47PM

John, I understand rather little here using google translate, sounds much confusing.
But can you explain what's it about the translation macro? It works quite well I think. You can select some text since years, just right-click and hit "Translation".
Or a whole page by using Tools>Translation.

Am only finding a little prob right now in KM1.6, in "selected" text those chapter-linebreaks seem not to be transfered and look like "...lastword.Newword...", making google think this were 1 word, and not translating neither one, grmpf. That could probably be fixed in the macro, but am too busy with other stuff currently.

And he might have a look at this:
http://kmeleonbrowser.org/wiki/FAQ#mouseaccels

And additionally to macro PriorTabs, there's also the native "Undo Last Closed" function, which also restores the complete tab history. The only catch is that tabs must be restored 1-by-1, each time the function is called it opens a yet older closed tab. But in most cases that's quite sufficient for me. It can be found in sessions menu and guess also by right-clicking a tab, or in File menu (but never quite know which menus I've tweaked or not ;-)



(sig) New unofficial K-Meleon 76.4 (KMG76.4) available, in own subforum.
Based on Goanna engine, called 'test' builds forever but more stable as 75.1 acc. forum members. It's 1-2 generations ahead of predecessor KM76RC-2016
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?



Edited 2 time(s). Last edit at 11/08/2015 08:55PM by siria.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 08, 2015 09:39PM

Quote
siria
John, I understand rather little here using google translate, sounds much confusing.
But can you explain what's it about the translation macro? It works quite well I think. You can select some text since years, just right-click and hit "Translation".
Or a whole page by using Tools>Translation.

Am only finding a little prob right now in KM1.6, in "selected" text those chapter-linebreaks seem not to be transfered and look like "...lastword.Newword...", making google think this were 1 word, and not translating neither one, grmpf. That could probably be fixed in the macro, but am too busy with other stuff currently.

What he wants is to display the translation "on top" not opening a new tab or url to a translator.

I pointed him to that thread (http://kmeleonbrowser.org/forum/read.php?9,114075) that maybe helps.

Doesn't exist other macro plugin, does it?

Quote
siria
And he might have a look at this:
http://kmeleonbrowser.org/wiki/FAQ#mouseaccels

Yep, I remember in the last moment and I pointed him to it for a replacement to the "Super Drag" addon.

Should be helpful enough for him as he wants to open links or tabs without using right click, only dragging and action.

Quote
siria
And additionally to macro PriorTabs, there's also the native "Undo Last Closed" function, which also restores the complete tab history. The only catch is that tabs must be restored 1-by-1, each time the function is called it opens a yet older closed tab. But in most cases that's quite sufficient for me. It can be found in sessions menu and guess also by right-clicking a tab, or in File menu (but never quite know which menus I've tweaked or not ;-)

He only wants the last closed tab, but what also is searching for is to restore the last view. If he were in the middle of the closed tab, restore that tab in the middle of the page.


He is also searching for an enhanced popup blocker.

The default only blocks during load, but not when clicking. Maybe you remember me saying something similar while beta testing and the new pages. I accomplished it by adding the preference told above to be more restrictive with events opening popups.

Maybe I could create an enhanced popup blocker macro, but it is as simple as add that preference. Maybe Dorian could implement by default.



Edited 1 time(s). Last edit at 11/08/2015 09:42PM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 09, 2015 12:33AM

The 'Undo last closed' also does not restore the scroll position. I will have a look at an old Javascript book and try to find those items, offsetTop and scrollTo.

I am not a js expert or even much of a novice so this will be a 'shot in the dark'.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: siria
Date: November 09, 2015 12:43AM

John can do JS a LOT better, no need for us clueless ones to struggle :cool:

Just a snippet from an old macro, if it helps anyone:
# Syntax: $JS_doit="scrollBy(0,scrollByPages(-1))" for page, or "scrollBy(0,-60)" for e.g. 60 pixel up
$URL=="example.com" ? $JS_doit="scrollBy(0,-500)" : 0 ;
$JS_doit=="" ? 0 : &JS_hndlDoc;



(sig) New unofficial K-Meleon 76.4 (KMG76.4) available, in own subforum.
Based on Goanna engine, called 'test' builds forever but more stable as 75.1 acc. forum members. It's 1-2 generations ahead of predecessor KM76RC-2016
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 09, 2015 01:20AM

@Siria, I could, but I'm not, I do what JamesD does, but with w3schools.com. I know I can do sometimes complex things, but after dig a lot there. I tend to forgot what I learned in that "school" xD (most of the times because of confusion with macro functions that are also similar)

http://www.w3schools.com/jsref/prop_win_pagexoffset.asp

Would be to injectJS, return the pageYOffset and store in the ini with the tab as a second argument (as a new section).

Then recover it from ini and scrollBy the height and 0 width.

Or use the width too, but usually the pages fit in width. That is up to you JamesD.



Edited 1 time(s). Last edit at 11/09/2015 01:20AM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 09, 2015 01:28PM

The question is "Do I get window or document value?"

If I use this code, what is the top object? Is it <head>?

var d = document.getElementById("div1");
var topPos = d.offsetTop;

And this code may have use. Not all, of course, but just a part. The trick is for me to find out what part.

<head>
    <script type="text/javascript">
        function GetOffset (object, offset) {
            if (!object)
                return;
            offset.x += object.offsetLeft;
            offset.y += object.offsetTop;

            GetOffset (object.offsetParent, offset);
        }

        function GetScrolled (object, scrolled) {
            if (!object)
                return;
            scrolled.x += object.scrollLeft;
            scrolled.y += object.scrollTop;

            if (object.tagName.toLowerCase () != "html") {
                GetScrolled (object.parentNode, scrolled);
            }
        }

        function GetTopLeft () {
            var div = document.getElementById ("myDiv");

            var offset = {x : 0, y : 0};
            GetOffset (div, offset);

            var scrolled = {x : 0, y : 0};
            GetScrolled (div.parentNode, scrolled);

            var posX = offset.x - scrolled.x;
            var posY = offset.y - scrolled.y;
            alert ("The top-left corner of the div relative to the top-left corner of the browser's client area: \n" 
                    + " horizontal: " + posX + "px\n vertical: " +  posY + "px");
        }
    </script>
</head>
<body>
    <div style="height:200px; width:300px; overflow:auto;">
        <div id="myDiv" style="width:200px; border:1px solid red;">
            You can get the top-left corner of this element 
            relative to the top left corner of the client area with the button below.<b**r />
            Use the scrollbars to test it for different positions.
        </div>
        <div style="width:1000px; height:1000px;"></div>
    </div>
    <b**r /> 
    <button onclick="GetTopLeft ();">Get the position of the element with red border!</button>
</body>
// Cannot post without the **

And on top of all that, I will have relearn the code of PriorTabs.kmm. I just hope that I can figure out what I obviously figured out before.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 09, 2015 05:54PM

Window. I wasn't sure of the function.

I haven't tested, but this would give you a better idea. NOTE: I haven't tested, I'm with several other things right now.


Inject onload.

var yo;
var xo;

locati(){

yo = window.pageYOffset;
xo = window.pageXOffset;
	
}

function(){

document.getElementsByTagName('body')[0].setAttribute('onbeforeunload', 'locati();');

return yo+' '+xo;

}
)();

But I'm not sure at what level K-meleon would be capable to capture any return at close time.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 12:02AM

Use it as helper. Download the file and use in you macro. I don't dare to modify yours.

Probably I did some mistake with coding guidelines. I can't get used to them tongue sticking out smiley

To get the position, works, but I didn't test beyond with ini writting and so on.

I added the underscore for the purpose to find what is the height offset (Y) and width offset (X).

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# File name: tabpos.kmm
# ---------- Get page position in current tab/window -----------------------------
#
# Dependencies        : -
# Resources           : -
# Preferences         : -
# Version             : 0.1 2015-11-10 
# Author              : JohnHell 
# --------------------------------------------------------------------------------

$tabpos_result = "";

_tabposout{

$tabpos_result = injectJS("(function(){var yo; var xo; yo = window.pageYOffset; xo = window.pageXOffset; return yo+'_'+xo;})();");

}

$OnCloseTab = $OnCloseTab."_tabposout;";
$OnCloseWindow = $OnCloseWindow."_tabposout;";



Edited 4 time(s). Last edit at 11/10/2015 12:06AM by JohnHell.

Attachments: tabpos.kmm (709 bytes)  
Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 12:23AM

Extended Popup blocker.

Help, needs enhancements as a toolbar button or menus.

Attachments: extended_pref_TogglePopups.kmm (1.1 KB)  
Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 01:23AM

Quote
JohnHell
_tabposout{

$tabpos_result = injectJS("(function(){var yo; var xo; yo = window.pageYOffset; xo = window.pageXOffset; return yo+'_'+xo;})();");

}

Thanks ever so much. I just sat down at computer expecting to spend hours trying to sort through all the stuff and get a code to work. You have done it for me. Now, I hope progress will be better. I have already done storage and retrieval tests on the ini and PriorTabs code.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 02:01AM

JohnHell

I only needed the one line which had the injectJS().

Below is first test of new code into an ini file. The y and x offsets are shown after the ~! at the end of each line.



Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 03:27AM

Quote
JamesD
JohnHell

I only needed the one line which had the injectJS().

Below is first test of new code into an ini file. The y and x offsets are shown after the ~! at the end of each line.


Yeah, well, use at your wish. Initially I did as a standalone macro. You could call it and then retrieve the variable. But one way or other, it is the same.

About the height and width, I'd do as a secondary ini section, but that is valid too, unless there is another exclamation in the url or title. Have that in mind. You only need to search and extract with substr.

To restore it, just substr and use scrollBy after open.

injectJS("(function(){window.scrollBy(".$variablewithX.",".$variablewithY.")();");

Or whatever way you retrieve the Y X. I mean, you could extract separated values, or "X,Y". I found out now that I extracted reversed, as scrollBy uses X,Y instead Y,X.

So the function you should use is this or you could become crazy tongue sticking out smiley :

injectJS("(function(){var yo; var xo; yo = window.pageYOffset; xo = window.pageXOffset; return xo+'_'+yo;})();");

Look how I reversed the return.


To know where to injectJS, would be needed an OnLoad to check that the URL of the new opened tab matches the restored URL tab.

example
_PriorTabs_checkurl{
     if($URL == $_PriorTabs_URL){
          injectJS("(function(){window.scrollBy(".$variablewithX.",".$variablewithY.");})();");
     }
}

$OnLoad = $OnLoad."_PriorTabs_checkurl;";

Maybe with a "just once" limiter. Or everytime the url is loaded, would scroll confused smiley



Edited 3 time(s). Last edit at 11/10/2015 03:33AM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 02:32PM

JohnHell

I was in a hurry last night and I missed the transposition of x and y. I have it fixed now.

Yes, I will use OnLoadOnce and check if URL is the one I need. If not the URL, I will need to set OnLoadOnce again.

If I don't have too many interruptions, I hope to finish the changes this morning.

As to the ~! break-point, I have been using ~~ before between title and URL and no one has indicated a problem. I nope that there will not be any title or URL with ~! either.

Change subject:

In the 'Extended Popup blocker', what kind of icon is needed? What should the picture be? Is it just on/off? It can be same as items on privacy bar or something else.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 04:00PM

This version of PriorTabs seems to work OK with scrolling. Please test at your convenience and report any problems.

Attachments: PriorTabs.kmm (6.9 KB)  
Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 04:15PM

Quote
JamesD
Change subject:

In the 'Extended Popup blocker', what kind of icon is needed? What should the picture be? Is it just on/off? It can be same as items on privacy bar or something else.

For this, the default skin forbidden icon and the tick should work.

As a side note I told in the 76 thread to be added the macro enhacement by Dorian, as Rosner was right that actually the popus are more aggressive and the popup blocker should be more restrictive by default.


PriorTabs looks OK smiling smiley

I'll send Rosner a PM as he looks now missing, after "fixing" his requests.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 04:45PM

I had this done when I read you icon choice. All you need is to select the icon you need and replace the 'checkX.png' in the macro. If you are using a default icon then you will not need all the other stuff I put into the 7z.

Please let me know if anything to be changed or added.



Edited 1 time(s). Last edit at 11/10/2015 04:46PM by JamesD.

Attachments: extended_pref_TogglePopups.7z (2.5 KB)  
Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 05:02PM

Quote
JamesD
I had this done when I read you icon choice. All you need is to select the icon you need and replace the 'checkX.png' in the macro. If you are using a default icon then you will not need all the other stuff I put into the 7z.

Please let me know if anything to be changed or added.

Don't worry, actually, it isn't for me, but for Rosner.

I had kind of this macro (not exactly) since a few months back, when some sites started to bring lots of popups with a variety of user actions.

But my macro was so personalized, as all my profile and not for public sharing. I had to clean it to share here winking smiley

Consider this new macro as a "macro for everyone".

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 10, 2015 06:41PM

OK, I will need some more information in order to proceed.

You mentioned a menu. Where should the menu appear? Sounds like a 'Privacy' thing, but I really don't know. I also do not know what English text to use for the menu.

There was information that the value used might me too restrictive.
# edit the above preference value to be more or less restrictive
If I could make a menu where not only could the user toggle on/off, but also choose from several levels of restriction, would that work? I am guessing that the value in the togglepref sets the level of restriction.

Could you make maybe four levels? Like 'Low', 'Medium', 'High', and 'Very high'? Or perhaps I can allow user to select which of the words in the string to use? The user could build by menu a string which could contain any combination of "change click dblclick mouseup reset submit touchend". I can have menu in Privacy or right-click on button, or maybe both.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 10, 2015 07:02PM

Quote
JamesD
OK, I will need some more information in order to proceed.

You mentioned a menu. Where should the menu appear? Sounds like a 'Privacy' thing, but I really don't know. I also do not know what English text to use for the menu.

Should be in privacy, and could or should replace the default "Block Popups" menu entry and its default macro in main.kmm, that is the reason I told in the 76 thread to Dorian.

The menu entry could be "Block Popups +", for example.

Quote
JamesD
There was information that the value used might me too restrictive.
# edit the above preference value to be more or less restrictive
If I could make a menu where not only could the user toggle on/off, but also choose from several levels of restriction, would that work? I am guessing that the value in the togglepref sets the level of restriction.

Could you make maybe four levels? Like 'Low', 'Medium', 'High', and 'Very high'? Or perhaps I can allow user to select which of the words in the string to use? The user could build by menu a string which could contain any combination of "change click dblclick mouseup reset submit touchend". I can have menu in Privacy or right-click on button, or maybe both.


The problem here is that this is not clear for us, and less for average users, so, how do you tell an user what is the best option?

I had to play until I found that leaving those 3 events was enough to stop unwanted popups. And now, I have a problem: launching the windows file browser to upload a file in a webpage is even blocked (yeah, even the upload function of this subforum), as it is considered a popup. So you need to use the permission manager to add whitelists. But it isn't negotiable. If you don't block it, you visit some pages and they bring popups.

And, maybe, just maybe, the best option when toggle should be to leave the preference empty, this is, block everything that brings up a popup.

There isn't a problem here. The icon that something is blocked works in every situation and the user is warned, but there may be an scenario where the users need to toggle continuously.



Also, in the preference there isn't even all the possible DOM events that bring popups and the only reference found (through mozillazine) is this:
http://lxr.mozilla.org/mozilla/source/content/events/src/nsDOMEvent.cpp (from line 59)


What I'm trying to say is that even I set that warning is better to have all or nothing.



Edited 1 time(s). Last edit at 11/10/2015 07:04PM by JohnHell.

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: siria
Date: November 11, 2015 12:59AM

Quote
JohnHell
He only wants the last closed tab, but what also is searching for is to restore the last view. If he were in the middle of the closed tab, restore that tab in the middle of the page.

Guys... Guess what?!
Just nearly fell out of my chair when finally testing my own macro on Vista now - and "Undo Last Closed" scrolled perfectly fine by itself already!!
And also noticed surprised and delighted that background tabs are long since stored correctly $OnCloseTab, since 75!

Now did some quick testing with "sessions(Undo)":
74.0+older: no scrolling + $OnCloseTab saves wrong closed URL (foreground tab)
75.0: partly scrolling (??) / $OnCloseTab saves also BG-tabs!
75.1: all around perfect macrowise, a dream grinning smiley
76beta: scrolling broken again



(sig) New unofficial K-Meleon 76.4 (KMG76.4) available, in own subforum.
Based on Goanna engine, called 'test' builds forever but more stable as 75.1 acc. forum members. It's 1-2 generations ahead of predecessor KM76RC-2016
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 11, 2015 01:19AM



Me with 75.0. JamesD probably with 76. You with 75.1.

Hey! but the macro is cross version. We haven't wasted our time

To myself

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: Rosner
Date: November 11, 2015 02:17AM

PriorTabs si funciona!

Muchas Gracias, pero sería bueno que hubiera un botón como este http://prntscr.com/91ewse

Saludos.

El bloqueador no funciona con páginas como shorte.st

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: Rosner
Date: November 11, 2015 02:26AM

El Greasemonkey ni si quiera lo puedo instalar, además ni hay botón para agregar scripts, es un dolor de cabeza.

No tienen un archivo listo para funcionar???

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JohnHell
Date: November 11, 2015 04:33PM

Quote
Rosner
PriorTabs si funciona!

Muchas Gracias, pero sería bueno que hubiera un botón como este http://prntscr.com/91ewse

Saludos.

El bloqueador no funciona con páginas como shorte.st


PriorTabs crea menus. Tienes que hacer click derecho sobre el título de la pestaña, por ejemplo.


For others:

He is requesting a button like in the screenshot. Looks like a menu isn't enough...

Options: ReplyQuote
Re: Alguien me ayuda???
Posted by: JamesD
Date: November 11, 2015 06:03PM

I will see what I can do about a button.

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.