Skip to content

Instantly share code, notes, and snippets.

View ian-lr's full-sized avatar
💿
Just <img src=x> 'in

ian-lr

💿
Just <img src=x> 'in
  • LiveRamp
  • San Francisco
View GitHub Profile
@ian-lr
ian-lr / customized_ats.html
Created August 20, 2020 02:22
defer load, use additional params
<script>
function addATS() {
var atsScript = document.createElement('script');
atsScript.onload = function () {
window.ats.start({
"placementID": REPLACE_ME,
"storageType": "localStorage",
"detectionType": "scrapeAndUrl",
"urlParameter": "eparam",
"cssSelectors": [
@ian-lr
ian-lr / default_ats.html
Created August 20, 2020 02:16
"boilerplate" ATS config
<script>
var atsScript = document.createElement('script');
atsScript.onload = function() {
window.ats.start({
"placementID": REPLACE_ME,
"storageType": "localStorage",
"detectionType": "scrape",
"cssSelectors": [
"input[type=text]",
"input[type=email]"
@ian-lr
ian-lr / prebid.js
Created August 17, 2020 17:26
Rebuild without error
/* prebid.js v4.3.0
Updated : 2020-08-17 */
!function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];a<e.length;a++)i=e[a],d[i]&&c.push(d[i][0]),d[i]=0;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);for(s&&s(e,t,n);c.length;)c.shift()();if(n)for(a=0;a<n.length;a++)o=f(f.s=n[a]);return o};var n={},d={324:0};function f(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return u[e].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=u,f.c=n,f.d=function(e,t,n){f.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="",f.oe=function(e){throw console.error(e),e},f(f.s=830)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"internal",function(){return R}),n.d(t,"bind",function(){return D}),t.getUniqueIdentifierStr
<script src="https://ats.rlcdn.com/ats.js"></script>
<script>
  function getUser() {
    let requestURL = 'api/users/'.concat(window.CURRENT_USER.id);
    $.get(requestURL, function(data) {
      ats.start({
        "placementID": 58,
        "storageType": "localStorage",
        "detectionType": "scrape",
        "email": data.response.user.email,
@ian-lr
ian-lr / test.css
Created August 23, 2019 23:59
CSS TEST
url(javascript:console.log(1));
list-style-image:url(javascript:console.log(2));

Keybase proof

I hereby claim:

  • I am ian-lr on github.
  • I am ianlr (https://keybase.io/ianlr) on keybase.
  • I have a public key ASCbJKv4wKNYNmow5nKxY_nN7Q694m8rLmtjcCOB4xmz9Qo

To claim this, I am signing this object: