- Add Git Module to Project
git submodule add <remote-link>- For updating with the latest version of submodule
| // Only using native browser features (no jQuery). | |
| // Uses `fetch`, `DOMParser` and `querySelectorAll`. | |
| const getTitle = (url) => { | |
| return fetch(`https://crossorigin.me/${url}`) | |
| .then((response) => response.text()) | |
| .then((html) => { | |
| const doc = new DOMParser().parseFromString(html, "text/html"); | |
| const title = doc.querySelectorAll('title')[0]; | |
| return title.innerText; |