General :  K-Meleon Forum
General discussion about K-Meleon. 
Domain info macro
Posted by: foliator
Date: June 17, 2017 06:48AM

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

-----

Using KM 75.0 on Windows 7 (x86)

Options: ReplyQuote
Re: Domain info macro
Posted by: rodocop
Date: June 22, 2017 06:07AM

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");
}

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

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


Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM 1.8.24.22 © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)



Edited 2 time(s). Last edit at 06/22/2017 06:09AM by rodocop.

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

Well, using JS for all sorts of stuff is a matter of personal preferences, tastes (and hardware) are different cool smiley
(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/23/2017 03:46AM by siria.

Options: ReplyQuote
Re: Domain info macro
Posted by: guenter
Date: June 22, 2017 11:39PM

Maybe do as search engine?

http://www.netip.de/search?query=

http://www.utrace.de/?query=


IE? Wasn't that the program that downloaded my first real browser?

Options: ReplyQuote
Re: Domain info macro
Posted by: foliator
Date: June 30, 2017 08: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.

-----

Using KM 75.0 on Windows 7 (x86)

Options: ReplyQuote


K-Meleon forum is powered by Phorum.