Skip to content

For all the people who think borders would help to make anything better!

License

Notifications You must be signed in to change notification settings

indus/brexit.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BREXIT.JS

For all the people who think borders would help to make anything better!

About

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)

eu FOR EU CITIZENS: https://brexit.js.org/uk/?to=https://www.gov.uk

uk FOR BRITISH: https://brexit.js.org/eu/?to=http://europa.eu/european-union/index_en

Installation & Usage

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):

LICENSE (CODE and everything else)

MIT Copyright (c) 2016 Stefan Keim (indus)

About

For all the people who think borders would help to make anything better!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published