Fixes bug 1029536 - allow hyphens in RID
A small, standalone JavaScript snippet for setting a Webmaker Referrer ID (RID).
Read more about RIDs on the wiki.
Just have this script load on any page under the *.webmaker.org domain and it will do the rest for you!
*.webmaker.org
Cookie-js code pulled from: https://github.com/cadecairos/cookie-js RID related code pulled from https://github.com/mozilla/webmaker-auth-client
Note: This script is not required if the page has the webmaker-auth-client loaded!
<script src="https://stuff.webmaker.org/webmaker-rid/webmaker-rid.js" async></script>
var ridScript = document.createElement("script"); ridScript.async = true; ridScript.src = "https://stuff.webmaker.org/webmaker-rid/webmaker-rid.js"; document.body.appendChild(ridScript);
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Webmaker RID
A small, standalone JavaScript snippet for setting a Webmaker Referrer ID (RID).
Read more about RIDs on the wiki.
Just have this script load on any page under the
*.webmaker.orgdomain and it will do the rest for you!Cookie-js code pulled from: https://github.com/cadecairos/cookie-js RID related code pulled from https://github.com/mozilla/webmaker-auth-client
Note: This script is not required if the page has the webmaker-auth-client loaded!
Examples
Insert into HTML
Insert into JavaScript