Disclosure, this is meant as a joke.
I made a chrome extension that will add radio buttons and a submit button to the Cemetech terms of service page. When you make a selection and click submit, it will send a message in sax with your selection.
Here is a link to the crx file (packaged extension that you can open with winrar, 7-zip or an additionnal chrome extension)
The code is quite trashy because I wrote it quickly and without much regard for efficiency. For those who would like to have a look at the js, here it is
Code:
There is no need for a form at all, because I'm not using the onsubmit event, but that was left behind in the making, so now the buttons are in a form and I can't be bothered to fix it since it works either way.
Here is a link to the TOS page if you don't know where to find it and would like to check it out.
And here is a quick pic of what it actually does.
I made a chrome extension that will add radio buttons and a submit button to the Cemetech terms of service page. When you make a selection and click submit, it will send a message in sax with your selection.
Here is a link to the crx file (packaged extension that you can open with winrar, 7-zip or an additionnal chrome extension)
The code is quite trashy because I wrote it quickly and without much regard for efficiency. For those who would like to have a look at the js, here it is
Code:
var form = document.createElement("FORM");
var agreeNode = document.createElement("INPUT");
agreeNode.setAttribute("type", "radio");
agreeNode.setAttribute("id", "radio1");
agreeNode.setAttribute("name", "radiobutt");
var disagreeNode = agreeNode.cloneNode(true);
disagreeNode.setAttribute("id", "radio2");
var agreeLabel = document.createElement("label");
agreeLabel.innerHTML = "Agree";
var disagreeLabel = document.createElement("label");
disagreeLabel.innerHTML = "Disagree<br>";
agreeLabel.setAttribute("for", "radio1");
disagreeLabel.setAttribute("for", "radio2");
var submitButton = document.createElement("INPUT");
submitButton.setAttribute("type", "button");
submitButton.setAttribute("value", "Submit");
submitButton.setAttribute("id", "formsub");
form.append(agreeNode);
form.append(agreeLabel);
form.append(disagreeNode);
form.append(disagreeLabel);
submitButton.setAttribute("onclick", "var radio1 = document.getElementById('radio1').checked;var radio2 = document.getElementById('radio2').checked;if (radio1){document.getElementById('saxtalk').value='I Agree with the Cemetech Terms of Service';document.getElementsByClassName('saxsubmit')[0].click();}if (radio2){document.getElementById('saxtalk').value='I Disagree with the Cemetech Terms of Service';document.getElementsByClassName('saxsubmit')[0].click();}");
form.append(submitButton);
document.getElementsByClassName("mainbodyinner")[0].append(form);
document.getElementsByClassName("mainbodyinner")[0].insertBefore(document.createElement("BR"), form);
There is no need for a form at all, because I'm not using the onsubmit event, but that was left behind in the making, so now the buttons are in a form and I can't be bothered to fix it since it works either way.
Here is a link to the TOS page if you don't know where to find it and would like to check it out.
And here is a quick pic of what it actually does.