Skip to content

Instantly share code, notes, and snippets.

@robd
Last active November 10, 2020 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robd/05f839e8465c83bb0f1aa0a41ad1b743 to your computer and use it in GitHub Desktop.
Save robd/05f839e8465c83bb0f1aa0a41ad1b743 to your computer and use it in GitHub Desktop.
FreeAgent quick categoriser
<a href=javascript:console.log("HELLO")>Test</a>

Create a bookmark with the following content: javascript:(function() { var xhrObj = new XMLHttpRequest(); xhrObj.open('GET', "https://gist.githubusercontent.com/robd/05f839e8465c83bb0f1aa0a41ad1b743/raw/categorise.js?cachebust=true", false); xhrObj.send(''); var se = document.createElement('script'); se.type = "text/javascript"; se.innerHTML = xhrObj.responseText; document.getElementsByTagName('head')[0].appendChild(se);})();

<a href=javascript:console.log("HELLO")>Test

(function() {
if(window.location.includes == "freeagent.com/bank_accounts/") {
console.log("Categorise")
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment