General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Domain info macro
Posted by: foliator
Date: June 16, 2017 11:48PM

Here's a little macro I just created which will give you lots of details about the domain of a site you are viewing. It depends on a small (211 kb) freeware utility, Nir Sofer's DomainHostingView, which is available here:

http://www.nirsoft.net/utils/domain_hosting_view.html

The program requires no installation; just locate the .EXE file in a folder of your choice.

Under Options in the program, make sure to check "Automatically Extract Domain Name". That will strip out the remaining parts of the url you are visiting.

And here's the macro, which simply passes the url from your url bar to the external program:

DomainInfo{
$_prog="full path goes here\DomainHostingView.exe";
$_domain=$URL;
exec($_prog." ".$_domain);
$_prog=""; $_domain="";
}

I've saved it as DomainInfo.kmm, and to run it, I've assigned Alt Shift I as a shortcut key in accel.cfg, e.g. ALT SHIFT I = macros(DomainInfo). I've also created a toolbar button for it, but that's optional. My toolbars are getting a bit overpopulated at this point. grinning smiley

---
Gerry

Options: ReplyQuote
Re: Domain info macro
Posted by: rodocop
Date: June 21, 2017 11:07PM

No need to use 3rd-parties.

there are few bookmarklets giving you comparative pool of info using some whois-services.

just create a bookmark with corresponding URL and clear name

domain info by nic.ru (russian):
javascript:location.href='https://www.nic.ru/whois/?domain='+location.host

domain info by nic.ru (english):
javascript:location.href='https://www.nic.ru/whois/en/?domain='+location.host

domain info by domaintools.com (needs being regged there or gives captcha):
javascript:location.href='http://whois.domaintools.com/'+encodeURIComponent(location.hostname);

=============================================================

or just create macro using any old one integrating bookmarklets or other JS-code.
example - KMFirebug lite:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------km firebug lite----------------------------------------------------------

firebug{injectJS("var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.4/firebug-lite-beta.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug)");
}

firebug_BuildMenu{
setmenu("Development",inline,firebug_page,-1);
setmenu(firebug_page,macro,"Firebug Lite",firebug);
}

$OnInit=$OnInit."firebug_BuildMenu;";
# --------------------------------
$macroModules=$macroModules."firebug;";

Changing for nic.ru whois english for example:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------km whois----------------------------------------------------------

kmwhois{injectJS("javascript:location.href='https://www.nic.ru/whois/en/?domain='+location.host"winking smiley;
}

kmwhois_BuildMenu{
setmenu("Development",inline,whois,-1);
setmenu(whois,macro,"Domain info",kmwhois);
}

$OnInit=$OnInit."kmwhois_BuildMenu;";
# --------------------------------
$macroModules=$macroModules."kmwhois;";



Edited 2 time(s). Last edit at 06/21/2017 11:09PM by rodocop.

Options: ReplyQuote
Re: Domain info macro
Posted by: siria
Date: June 22, 2017 02:03AM

Well, using JS for all sorts of stuff is a matter of personal preferences, tastes (and hardware) are different :cool:
(Edit: oops sorry, overlooked for a moment that it's now run inside a macro via injectJS, that means the web-JS can stay blocked)

But the prob with "copying any old macro" is that this keeps perpetuating too complicated code, again and again and again, especially for such simple single menu lines:

Quote

firebug_BuildMenu{
setmenu("Development",inline,firebug_page,-1);
setmenu(firebug_page,macro,"Firebug Lite",firebug);
}

firebug_BuildMenu{
setmenu("Development",macro,"Firebug Lite",firebug);
}




Edited 1 time(s). Last edit at 06/22/2017 08:46PM by siria.

Options: ReplyQuote
Re: Domain info macro
Posted by: guenter
Date: June 22, 2017 04:39PM
Options: ReplyQuote
Re: Domain info macro
Posted by: foliator
Date: June 30, 2017 01:13AM

@guenter and rodocop:

Good suggestions! The reason I used a 3rd-party app was that it was already on my hard drive, and I discovered accidentally that domain names could be passed to it via the command line. That made it possible to design a very simple macro, and also gave me some experience handling variables.

---
Gerry

Options: ReplyQuote


K-Meleon forum is powered by Phorum.