For all the people who think borders would help to make anything better!
The lib rewrites all links on a page that is hosted under the .uk ccTLD if they target another page with a domain of one of EUs remaining member states (or vice versa). Navigation from a rewriten link then takes a stopover at the border control and is getting monitored with a grim look before beeing forwarded.
DEMO (of the border control page)
FOR EU CITIZENS: https://brexit.js.org/uk/?to=https://www.gov.uk
FOR BRITISH: https://brexit.js.org/eu/?to=http://europa.eu/european-union/index_en
Just add the script to you page and call its only function brexit()
(and don´t think about the consequences too much)
<!-- load the brexit.js script library -->
<script src="brexit.js"></script>
<!-- use the library -->
<script>
brexit();
</script>
<!-- before --> <a href="https://www.gov.uk">GOV</a>
<!-- after --> <a href="https://brexit.js.org/uk/?to=https://www.gov.uk">GOV</a>
Feel free to call brexit
again e.g. if the DOM has changed and new links need to be handled; I also thought about a function to reverse the BREXIT and to restore the original state - but I think that would be even more pointless...
There are customized pages for the follwing country codes and ccTLDs: eu, at, be, bg, cy, cz, de, dk, ee, es, fi, fr, gr, hr, hu, ie, it, lt, lu, lv, mt, nl, pl, pt, ro, se, si, sk, uk, gb
(some of them share a default city silhouette; file a PR if you want to contribute one of the missing silhouettes)
CREDITS/LICENSES (assets on website):
-
City silhouette: Creative Commons (Attribution 3.0); Copyright © Free graphic resource for designer! All Rights Reserved.; http://freedesignfile.com
-
National flags: MIT License (MIT); Copyright (c) 2013 Panayiotis Lipiridis; https://github.com/lipis/flag-icon-css
-
Police man: Copyright (c) patrimonio; licensed on vectorstock.com; https://www.vectorstock.com/royalty-free-vector/traffic-policeman-hand-stop-sign-circle-retro-vector-5327174
MIT Copyright (c) 2016 Stefan Keim (indus)