Advertisement
jamescolin

SAVING RPM SCRIPTS

Dec 23rd, 2022
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. LANDING PAGE PIXEL
  2. <script>
  3. window.addEventListener('load', function () {
  4. var myjamesparams = (new URL(document.location)).searchParams;
  5. if (myjamesparams.get('e')!=null) {
  6. myjameschangeValue(document.querySelector('[type="email"]'),myjamesparams.get('e'));
  7. }
  8. if (myjamesparams.get('t')!=null) {
  9. localStorage.setItem('jamest', myjamesparams.get('t'));
  10. }
  11. });
  12.  
  13. function myjameschangeValue(input,value){
  14. var nativeInputValueSetter = Object.getOwnPropertyDescriptor(
  15. window.HTMLInputElement.prototype,
  16. "value"
  17. ).set;
  18. nativeInputValueSetter.call(input, value);
  19. var inputEvent = new Event("input", { bubbles: true });
  20. input.dispatchEvent(inputEvent);
  21. }
  22. </script>
  23.  
  24. THANK YOU PAGE PIXEL
  25. <script>
  26. var destination = 'https://warriorplus.com/o2/a/s6v6cp/0';
  27. if (localStorage.jamest) {
  28. destination += '/'+localStorage.jamest;
  29. } else {
  30. destination += '/notrackingset';
  31. }
  32. window.location.replace(destination);
  33. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement