User:Jklamo/ARES.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*
This script will display links to Czech Commercial Register (Q15651827) and Hlídač státu (Q108316770) databases right next to the Czech Registration ID property (P4156) link.
To use, simply add
importScript( 'User:Jklamo/ARES.js' );
to your common.js user subpage.
Based source code stolen from https://rawgit.com/frettie/csfd-wiki-frontend/master/main.js
*/
jQuery(document).ready(function() {
$('<span> <span><a href="https://or.justice.cz/ias/ui/rejstrik-$firma?ico=' + $('#P4156 a.wb-external-id').text() + '&jenPlatne=VSECHNY' + '">OR</a>' + '<span> <span><a href="https://www.hlidacstatu.cz/subjekt/' + $('#P4156 a.wb-external-id').text() + '">HlidStat</a>').insertAfter('#P4156 a.wb-external-id');
});