Advertisement
Guest User

Untitled

a guest
Dec 9th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.24 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Shopping and payment reminder script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Reminder tooltip for shopping sites
  6. // @author NovaAlpha
  7. // @include *://*/*
  8. // @exclude *://*google.com/*
  9. // @exclude *://*azure.com/*
  10. // @exclude *://*microsoft.com/*
  11. // // @match *://*cheapies.nz/*
  12. // // @match *://*aliexpress.com/*
  13. // // @match *://*temu.com/*//
  14. // // @match *://*asb.co.nz/*
  15. // // @match *://*westpac.co.nz/*
  16. // // @match *://*anz.co.nz/*
  17. // // @match *://*ubereats.com/*
  18. // // @match *://*dominos.co.nz/*//
  19. // // @match *://*mcdonalds.co.nz/*//
  20. // @grant none
  21. // ==/UserScript==
  22.  
  23. (function() {
  24. 'use strict';
  25.  
  26. var reminderDiv = document.createElement('div');
  27. var site = location.hostname;
  28. var contentHTML = '';
  29.  
  30. if (site.includes('cheapies.nz')) {
  31. var DisplayPopup = true;
  32. //contentHTML += 'Check OzBargain as well! <br><br> FREEBIES: https://www.cheapies.nz/freebies <br><br> Couponese: https://www.couponese.com <br><br> Low quantity: https://www.cheapies.nz/node/32142 <br><br> Referral: https://www.cheapies.nz/wiki/list_of_referral_links <br><br> Clearance: https://www.cheapies.nz/wiki/list_of_clearance_sites <br> <br> Price comparison: https://www.cheapies.nz/wiki/price_comparison_sites';
  33.  
  34. contentHTML += 'Check OzBargain as well! <br><br> FREEBIES: <a href="https://www.cheapies.nz/freebies">https://www.cheapies.nz/freebies</a> <br><br> Couponese: <a href="https://www.couponese.com">https://www.couponese.com</a> <br><br> Low quantity: <a href="https://www.cheapies.nz/node/32142">https://www.cheapies.nz/node/32142</a> <br><br> Referral: <a href="https://www.cheapies.nz/wiki/list_of_referral_links">https://www.cheapies.nz/wiki/list_of_referral_links</a> <br><br> Clearance: <a href="https://www.cheapies.nz/wiki/list_of_clearance_sites">https://www.cheapies.nz/wiki/list_of_clearance_sites</a> <br> <br> Price comparison: <a href="https://www.cheapies.nz/wiki/price_comparison_sites">https://www.cheapies.nz/wiki/price_comparison_sites</a>';
  35.  
  36. reminderDiv.style.top = '50%'; // Center vertically
  37. reminderDiv.style.left = '10px'; // Left alignment
  38. reminderDiv.style.transform = 'translateY(-50%)'; // Adjust for exact centering vertically
  39.  
  40. }
  41.  
  42. else if (site.includes('aliexpress.com')) {
  43.  
  44. var DisplayPopup = true;
  45. contentHTML += 'Pick 3 and save: <a href="https://www.aliexpress.com/gcp/300000512/nnmixupdatev3?disableNav=YES&pha_manifest=ssr&_immersiveMode=true&channelLinkTag=nn_newgcp&spm=a2g0o.home.poplayer.125911_206920">https://www.aliexpress.com/gcp/300000512/nnmixupdatev3?disableNav=YES&pha_manifest=ssr&_immersiveMode=true&channelLinkTag=nn_newgcp&spm=a2g0o.home.poplayer.125911_206920</a>';
  46. }
  47.  
  48. else if (site.includes('asb.co.nz') || site.includes('anz.co.nz') || site.includes('westpac.co.nz')) {
  49. var DisplayPopup = true;
  50. contentHTML += 'Remember to use Dosh for payment!';
  51. }
  52. else if (site.includes('ubereats.com') || site.includes('mcdonalds.co.nz') || site.includes('dominos.co.nz') || site.includes('hellpizza.nz')) {
  53. var DisplayPopup = true;
  54. contentHTML += 'Check Cheapies or OzBargain extension for coupons <br><br> Remember to use Dosh for payment! <br><br> Fast food deals: <a href="https://www.cheapies.nz/pages/fastfood">https://www.cheapies.nz/pages/fastfood</a> <br><br> <a href="https://www.cheapies.nz/cat/dining-takeaway">https://www.cheapies.nz/cat/dining-takeaway</a> <br><br> <a href="https://www.cheapies.nz/pages/pizza-coupons">https://www.cheapies.nz/pages/pizza-coupons</a> <br><br> Groceries: <a href="https://www.cheapies.nz/cat/groceries">https://www.cheapies.nz/cat/groceries</a> <br><br> Couponese: <a href="https://www.couponese.com">https://www.couponese.com</a> <br><br> Referral: <a href="https://www.cheapies.nz/deals/ubereats.com#refinfo18">https://www.cheapies.nz/deals/ubereats.com#refinfo18</a>';
  55. }
  56. else if (site.includes('starlink.com')) {
  57. var DisplayPopup = true;
  58. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/starlink.com#refinfo134">https://www.cheapies.nz/deals/starlink.com#refinfo134</a>';
  59. }
  60. else if (site.includes('stickermule.com')) {
  61. var DisplayPopup = true;
  62. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/stickermule.com#refinfo130">https://www.cheapies.nz/deals/stickermule.com#refinfo130</a>';
  63. }
  64. else if (site.includes('abra.com')) {
  65. var DisplayPopup = true;
  66. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/abra.com#refinfo120">https://www.cheapies.nz/deals/abra.com#refinfo120</a>';
  67. }
  68. else if (site.includes('afterpay.com')) {
  69. var DisplayPopup = true;
  70. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/afterpay.com#refinfo140">https://www.cheapies.nz/deals/afterpay.com#refinfo140</a>';
  71. }
  72. else if (site.includes('airbnb.com')) {
  73. var DisplayPopup = true;
  74. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/airbnb.com#refinfo67">https://www.cheapies.nz/deals/airbnb.com#refinfo67</a>';
  75. }
  76. else if (site.includes('americanexpress.com')) {
  77. var DisplayPopup = true;
  78. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/americanexpress.com#refinfo162">https://www.cheapies.nz/deals/americanexpress.com#refinfo162</a> <br><br> <a href="https://www.cheapies.nz/deals/americanexpress.com#refinfo161">https://www.cheapies.nz/deals/americanexpress.com#refinfo161</a> <br><br> <a href="https://www.cheapies.nz/deals/americanexpress.com#refinfo160">https://www.cheapies.nz/deals/americanexpress.com#refinfo160</a> <br><br> <a href="https://www.cheapies.nz/deals/americanexpress.com#refinfo159">https://www.cheapies.nz/deals/americanexpress.com#refinfo159</a> <br><br> <a href="https://www.cheapies.nz/deals/americanexpress.com#refinfo158">https://www.cheapies.nz/deals/americanexpress.com#refinfo158</a>';
  79. }
  80. else if (site.includes('amp.co.nz')) {
  81. var DisplayPopup = true;
  82. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/amp.co.nz#refinfo164">https://www.cheapies.nz/deals/amp.co.nz#refinfo164</a>';
  83. }
  84. else if (site.includes('banggood.com')) {
  85. var DisplayPopup = true;
  86. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/banggood.com#refinfo61">https://www.cheapies.nz/deals/banggood.com#refinfo61</a>';
  87. }
  88. else if (site.includes('bargainbox.co.nz')) {
  89. var DisplayPopup = true;
  90. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/bargainbox.co.nz#refinfo36">https://www.cheapies.nz/deals/bargainbox.co.nz#refinfo36</a>';
  91. }
  92. else if (site.includes('ridebeam.com')) {
  93. var DisplayPopup = true;
  94. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/ridebeam.com#refinfo54">https://www.cheapies.nz/deals/ridebeam.com#refinfo54</a>';
  95. }
  96. else if (site.includes('benjerry.co.nz')) {
  97. var DisplayPopup = true;
  98. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/benjerry.co.nz#refinfo113">https://www.cheapies.nz/deals/benjerry.co.nz#refinfo113</a>';
  99. }
  100. else if (site.includes('bigpipe.co.nz')) {
  101. var DisplayPopup = true;
  102. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/bigpipe.co.nz#refinfo10">https://www.cheapies.nz/deals/bigpipe.co.nz#refinfo10</a>';
  103. }
  104. else if (site.includes('binance.com')) {
  105. var DisplayPopup = true;
  106. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/binance.com#refinfo83">https://www.cheapies.nz/deals/binance.com#refinfo83</a>';
  107. }
  108. else if (site.includes('bitstamp.net')) {
  109. var DisplayPopup = true;
  110. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/bitstamp.net#refinfo117">https://www.cheapies.nz/deals/bitstamp.net#refinfo117</a>';
  111. }
  112. else if (site.includes('blockfi.com')) {
  113. var DisplayPopup = true;
  114. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/blockfi.com#refinfo102">https://www.cheapies.nz/deals/blockfi.com#refinfo102</a>';
  115. }
  116. else if (site.includes('bose.co.nz')) {
  117. var DisplayPopup = true;
  118. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/bose.co.nz#refinfo109">https://www.cheapies.nz/deals/bose.co.nz#refinfo109</a>';
  119. }
  120. else if (site.includes('brickstore.nz')) {
  121. var DisplayPopup = true;
  122. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/brickstore.nz#refinfo143">https://www.cheapies.nz/deals/brickstore.nz#refinfo143</a>';
  123. }
  124. else if (site.includes('bulknutrients.com.au')) {
  125. var DisplayPopup = true;
  126. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/bulknutrients.com.au#refinfo171">https://www.cheapies.nz/deals/bulknutrients.com.au#refinfo171</a>';
  127. }
  128. else if (site.includes('cashrewards.com.au')) {
  129. var DisplayPopup = true;
  130. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/cashrewards.com.au#refinfo40">https://www.cheapies.nz/deals/cashrewards.com.au#refinfo40</a>';
  131. }
  132. else if (site.includes('chipolo.net')) {
  133. var DisplayPopup = true;
  134. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/chipolo.net#refinfo156">https://www.cheapies.nz/deals/chipolo.net#refinfo156</a>';
  135. }
  136. else if (site.includes('co-operativebank.co.nz')) {
  137. var DisplayPopup = true;
  138. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/co-operativebank.co.nz#refinfo34">https://www.cheapies.nz/deals/co-operativebank.co.nz#refinfo34</a>';
  139. }
  140. else if (site.includes('coinbase.com')) {
  141. var DisplayPopup = true;
  142. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/coinbase.com#refinfo68">https://www.cheapies.nz/deals/coinbase.com#refinfo68</a>';
  143. }
  144. else if (site.includes('contact.co.nz')) {
  145. var DisplayPopup = true;
  146. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/contact.co.nz#refinfo57">https://www.cheapies.nz/deals/contact.co.nz#refinfo57</a>';
  147. }
  148. else if (site.includes('coveinsurance.co.nz')) {
  149. var DisplayPopup = true;
  150. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/coveinsurance.co.nz#refinfo63">https://www.cheapies.nz/deals/coveinsurance.co.nz#refinfo63</a>';
  151. }
  152. else if (site.includes('crypto.com')) {
  153. var DisplayPopup = true;
  154. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/crypto.com#refinfo84">https://www.cheapies.nz/deals/crypto.com#refinfo84</a>';
  155. }
  156. else if (site.includes('currencyfair.com')) {
  157. var DisplayPopup = true;
  158. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/currencyfair.com#refinfo85">https://www.cheapies.nz/deals/currencyfair.com#refinfo85</a>';
  159. }
  160. else if (site.includes('dashlane.com')) {
  161. var DisplayPopup = true;
  162. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/dashlane.com#refinfo17">https://www.cheapies.nz/deals/dashlane.com#refinfo17</a>';
  163. }
  164. else if (site.includes('delivereasy.co.nz')) {
  165. var DisplayPopup = true;
  166. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/delivereasy.co.nz#refinfo88">https://www.cheapies.nz/deals/delivereasy.co.nz#refinfo88</a>';
  167. }
  168. else if (site.includes('didiglobal.com')) {
  169. var DisplayPopup = true;
  170. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/didiglobal.com#refinfo91">https://www.cheapies.nz/deals/didiglobal.com#refinfo91</a>';
  171. }
  172. else if (site.includes('doordash.com')) {
  173. var DisplayPopup = true;
  174. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/doordash.com#refinfo133">https://www.cheapies.nz/deals/doordash.com#refinfo133</a>';
  175. }
  176. else if (site.includes('dosh.nz')) {
  177. var DisplayPopup = true;
  178. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/dosh.nz#refinfo136">https://www.cheapies.nz/deals/dosh.nz#refinfo136</a>';
  179. }
  180. else if (site.includes('drop.com')) {
  181. var DisplayPopup = true;
  182. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/drop.com#refinfo38">https://www.cheapies.nz/deals/drop.com#refinfo38</a>';
  183. }
  184. else if (site.includes('dropbox.com')) {
  185. var DisplayPopup = true;
  186. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/dropbox.com#refinfo2">https://www.cheapies.nz/deals/dropbox.com#refinfo2</a>';
  187. }
  188. else if (site.includes('easycrypto.com')) {
  189. var DisplayPopup = true;
  190. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/easycrypto.com#refinfo126">https://www.cheapies.nz/deals/easycrypto.com#refinfo126</a>';
  191. }
  192. else if (site.includes('ecosa.co.nz')) {
  193. var DisplayPopup = true;
  194. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/ecosa.co.nz#refinfo78">https://www.cheapies.nz/deals/ecosa.co.nz#refinfo78</a>';
  195. }
  196. else if (site.includes('emma-sleep.co.nz')) {
  197. var DisplayPopup = true;
  198. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/emma-sleep.co.nz#refinfo97">https://www.cheapies.nz/deals/emma-sleep.co.nz#refinfo97</a>';
  199. }
  200. else if (site.includes('energyonline.co.nz')) {
  201. var DisplayPopup = true;
  202. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/energyonline.co.nz#refinfo79">https://www.cheapies.nz/deals/energyonline.co.nz#refinfo79</a>';
  203. }
  204. else if (site.includes('eskimo.travel')) {
  205. var DisplayPopup = true;
  206. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/eskimo.travel#refinfo157">https://www.cheapies.nz/deals/eskimo.travel#refinfo157</a>';
  207. }
  208. else if (site.includes('ethiqueworld.com')) {
  209. var DisplayPopup = true;
  210. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/ethiqueworld.com#refinfo137">https://www.cheapies.nz/deals/ethiqueworld.com#refinfo137</a>';
  211. }
  212. else if (site.includes('fanatical.com')) {
  213. var DisplayPopup = true;
  214. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/fanatical.com#refinfo141">https://www.cheapies.nz/deals/fanatical.com#refinfo141</a>';
  215. }
  216. else if (site.includes('feedmyfurbaby.co.nz')) {
  217. var DisplayPopup = true;
  218. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/feedmyfurbaby.co.nz#refinfo148">https://www.cheapies.nz/deals/feedmyfurbaby.co.nz#refinfo148</a>';
  219. }
  220. else if (site.includes('felixmobile.com.au')) {
  221. var DisplayPopup = true;
  222. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/felixmobile.com.au#refinfo163">https://www.cheapies.nz/deals/felixmobile.com.au#refinfo163</a>';
  223. }
  224. else if (site.includes('firsttable.co.nz')) {
  225. var DisplayPopup = true;
  226. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/firsttable.co.nz#refinfo95">https://www.cheapies.nz/deals/firsttable.co.nz#refinfo95</a>';
  227. }
  228. else if (site.includes('fishinginnovators.co.nz')) {
  229. var DisplayPopup = true;
  230. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/fishinginnovators.co.nz#refinfo167">https://www.cheapies.nz/deals/fishinginnovators.co.nz#refinfo167</a>';
  231. }
  232. else if (site.includes('flamingoscooters.com')) {
  233. var DisplayPopup = true;
  234. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/flamingoscooters.com#refinfo51">https://www.cheapies.nz/deals/flamingoscooters.com#refinfo51</a>';
  235. }
  236. else if (site.includes('flickelectric.co.nz')) {
  237. var DisplayPopup = true;
  238. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/flickelectric.co.nz#refinfo33">https://www.cheapies.nz/deals/flickelectric.co.nz#refinfo33</a>';
  239. }
  240. else if (site.includes('frankenergy.co.nz')) {
  241. var DisplayPopup = true;
  242. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/frankenergy.co.nz#refinfo114">https://www.cheapies.nz/deals/frankenergy.co.nz#refinfo114</a>';
  243. }
  244. else if (site.includes('gamekings.co.nz')) {
  245. var DisplayPopup = true;
  246. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/gamekings.co.nz#refinfo123">https://www.cheapies.nz/deals/gamekings.co.nz#refinfo123</a>';
  247. }
  248. else if (site.includes('generatewealth.co.nz')) {
  249. var DisplayPopup = true;
  250. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/generatewealth.co.nz#refinfo144">https://www.cheapies.nz/deals/generatewealth.co.nz#refinfo144</a>';
  251. }
  252. else if (site.includes('giftmonkey.co.nz')) {
  253. var DisplayPopup = true;
  254. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/giftmonkey.co.nz#refinfo115">https://www.cheapies.nz/deals/giftmonkey.co.nz#refinfo115</a>';
  255. }
  256. else if (site.includes('goodgeorge.kiwi.nz')) {
  257. var DisplayPopup = true;
  258. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/goodgeorge.kiwi.nz#refinfo110">https://www.cheapies.nz/deals/goodgeorge.kiwi.nz#refinfo110</a>';
  259. }
  260. else if (site.includes('hatchinvest.nz')) {
  261. var DisplayPopup = true;
  262. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/hatchinvest.nz#refinfo81">https://www.cheapies.nz/deals/hatchinvest.nz#refinfo81</a>';
  263. }
  264. else if (site.includes('hellofresh.co.nz')) {
  265. var DisplayPopup = true;
  266. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/hellofresh.co.nz#refinfo43">https://www.cheapies.nz/deals/hellofresh.co.nz#refinfo43</a> <br><br> <a href="https://www.cheapies.nz/deals/hellofresh.co.nz#refinfo138">https://www.cheapies.nz/deals/hellofresh.co.nz#refinfo138</a>';
  267. }
  268. else if (site.includes('hnry.co.nz')) {
  269. var DisplayPopup = true;
  270. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/hnry.co.nz#refinfo128">https://www.cheapies.nz/deals/hnry.co.nz#refinfo128</a>';
  271. }
  272. else if (site.includes('hopper.com')) {
  273. var DisplayPopup = true;
  274. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/hopper.com#refinfo150">https://www.cheapies.nz/deals/hopper.com#refinfo150</a>';
  275. }
  276. else if (site.includes('humblebundle.com')) {
  277. var DisplayPopup = true;
  278. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/humblebundle.com#refinfo30">https://www.cheapies.nz/deals/humblebundle.com#refinfo30</a>';
  279. }
  280. else if (site.includes('icebreaker.com')) {
  281. var DisplayPopup = true;
  282. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/icebreaker.com#refinfo155">https://www.cheapies.nz/deals/icebreaker.com#refinfo155</a>';
  283. }
  284. else if (site.includes('iherb.com')) {
  285. var DisplayPopup = true;
  286. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/iherb.com#refinfo28">https://www.cheapies.nz/deals/iherb.com#refinfo28</a>';
  287. }
  288. else if (site.includes('junofunds.co.nz')) {
  289. var DisplayPopup = true;
  290. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/junofunds.co.nz#refinfo153">https://www.cheapies.nz/deals/junofunds.co.nz#refinfo153</a>';
  291. }
  292. else if (site.includes('kiddicare.co.nz')) {
  293. var DisplayPopup = true;
  294. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/kiddicare.co.nz#refinfo94">https://www.cheapies.nz/deals/kiddicare.co.nz#refinfo94</a>';
  295. }
  296. else if (site.includes('kiwiwallet.co.nz')) {
  297. var DisplayPopup = true;
  298. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/kiwiwallet.co.nz#refinfo53">https://www.cheapies.nz/deals/kiwiwallet.co.nz#refinfo53</a>';
  299. }
  300. else if (site.includes('lifepharmacystlukes.co.nz')) {
  301. var DisplayPopup = true;
  302. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/lifepharmacystlukes.co.nz#refinfo75">https://www.cheapies.nz/deals/lifepharmacystlukes.co.nz#refinfo75</a>';
  303. }
  304. else if (site.includes('lifedirect.co.nz')) {
  305. var DisplayPopup = true;
  306. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/lifedirect.co.nz#refinfo154">https://www.cheapies.nz/deals/lifedirect.co.nz#refinfo154</a>';
  307. }
  308. else if (site.includes('li.me')) {
  309. var DisplayPopup = true;
  310. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/li.me#refinfo42">https://www.cheapies.nz/deals/li.me#refinfo42</a>';
  311. }
  312. else if (site.includes('lonestar.co.nz')) {
  313. var DisplayPopup = true;
  314. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/lonestar.co.nz#refinfo80">https://www.cheapies.nz/deals/lonestar.co.nz#refinfo80</a>';
  315. }
  316. else if (site.includes('getmade.co.nz')) {
  317. var DisplayPopup = true;
  318. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/getmade.co.nz#refinfo103">https://www.cheapies.nz/deals/getmade.co.nz#refinfo103</a>';
  319. }
  320. else if (site.includes('mercury.co.nz')) {
  321. var DisplayPopup = true;
  322. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/mercury.co.nz#refinfo72">https://www.cheapies.nz/deals/mercury.co.nz#refinfo72</a>';
  323. }
  324. else if (site.includes('mevo.co.nz')) {
  325. var DisplayPopup = true;
  326. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/mevo.co.nz#refinfo65">https://www.cheapies.nz/deals/mevo.co.nz#refinfo65</a>';
  327. }
  328. else if (site.includes('mobvoi.com')) {
  329. var DisplayPopup = true;
  330. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/mobvoi.com#refinfo100">https://www.cheapies.nz/deals/mobvoi.com#refinfo100</a>';
  331. }
  332. else if (site.includes('myfoodbag.co.nz')) {
  333. var DisplayPopup = true;
  334. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/myfoodbag.co.nz#refinfo35">https://www.cheapies.nz/deals/myfoodbag.co.nz#refinfo35</a>';
  335. }
  336. else if (site.includes('myprotein.com')) {
  337. var DisplayPopup = true;
  338. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/myprotein.com#refinfo14">https://www.cheapies.nz/deals/myprotein.com#refinfo14</a>';
  339. }
  340. else if (site.includes('myrepublic.net')) {
  341. var DisplayPopup = true;
  342. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/myrepublic.net#refinfo49">https://www.cheapies.nz/deals/myrepublic.net#refinfo49</a>';
  343. }
  344. else if (site.includes('rideneuron.com')) {
  345. var DisplayPopup = true;
  346. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/rideneuron.com#refinfo73">https://www.cheapies.nz/deals/rideneuron.com#refinfo73</a>';
  347. }
  348. else if (site.includes('nexo.io')) {
  349. var DisplayPopup = true;
  350. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/nexo.io#refinfo116">https://www.cheapies.nz/deals/nexo.io#refinfo116</a>';
  351. }
  352. else if (site.includes('nordvpn.com')) {
  353. var DisplayPopup = true;
  354. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/nordvpn.com#refinfo131">https://www.cheapies.nz/deals/nordvpn.com#refinfo131</a>';
  355. }
  356. else if (site.includes('nownz.co.nz')) {
  357. var DisplayPopup = true;
  358. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/nownz.co.nz#refinfo166">https://www.cheapies.nz/deals/nownz.co.nz#refinfo166</a>';
  359. }
  360. else if (site.includes('nzsale.co.nz')) {
  361. var DisplayPopup = true;
  362. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/nzsale.co.nz#refinfo16">https://www.cheapies.nz/deals/nzsale.co.nz#refinfo16</a>';
  363. }
  364. else if (site.includes('oculus.com')) {
  365. var DisplayPopup = true;
  366. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/oculus.com#refinfo145">https://www.cheapies.nz/deals/oculus.com#refinfo145</a>';
  367. }
  368. else if (site.includes('okcoin.com')) {
  369. var DisplayPopup = true;
  370. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/okcoin.com#refinfo118">https://www.cheapies.nz/deals/okcoin.com#refinfo118</a>';
  371. }
  372. else if (site.includes('ola.co.nz')) {
  373. var DisplayPopup = true;
  374. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/ola.co.nz#refinfo44">https://www.cheapies.nz/deals/ola.co.nz#refinfo44</a>';
  375. }
  376. else if (site.includes('onceit.co.nz')) {
  377. var DisplayPopup = true;
  378. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/onceit.co.nz#refinfo112">https://www.cheapies.nz/deals/onceit.co.nz#refinfo112</a>';
  379. }
  380. else if (site.includes('onzo.co.nz')) {
  381. var DisplayPopup = true;
  382. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/onzo.co.nz#refinfo37">https://www.cheapies.nz/deals/onzo.co.nz#refinfo37</a>';
  383. }
  384. else if (site.includes('opas.com')) {
  385. var DisplayPopup = true;
  386. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/opas.com#refinfo111">https://www.cheapies.nz/deals/opas.com#refinfo111</a>';
  387. }
  388. else if (site.includes('ozonecoffee.co.nz')) {
  389. var DisplayPopup = true;
  390. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/ozonecoffee.co.nz#refinfo135">https://www.cheapies.nz/deals/ozonecoffee.co.nz#refinfo135</a>';
  391. }
  392. else if (site.includes('petdirect.co.nz')) {
  393. var DisplayPopup = true;
  394. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/petdirect.co.nz#refinfo106">https://www.cheapies.nz/deals/petdirect.co.nz#refinfo106</a>';
  395. }
  396. else if (site.includes('powershop.co.nz')) {
  397. var DisplayPopup = true;
  398. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/powershop.co.nz#refinfo26">https://www.cheapies.nz/deals/powershop.co.nz#refinfo26</a>';
  399. }
  400. else if (site.includes('purenature.co.nz')) {
  401. var DisplayPopup = true;
  402. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/purenature.co.nz#refinfo58">https://www.cheapies.nz/deals/purenature.co.nz#refinfo58</a> <br><br> Clearance: <a href="https://www.purenature.co.nz/collections/clearance">https://www.purenature.co.nz/collections/clearance</a>';
  403. }
  404. else if (site.includes('quic.nz')) {
  405. var DisplayPopup = true;
  406. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/quic.nz#refinfo168">https://www.cheapies.nz/deals/quic.nz#refinfo168</a>';
  407. }
  408. else if (site.includes('realfooddirect.co.nz')) {
  409. var DisplayPopup = true;
  410. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/realfooddirect.co.nz#refinfo93">https://www.cheapies.nz/deals/realfooddirect.co.nz#refinfo93</a>';
  411. }
  412. else if (site.includes('rebtel.com')) {
  413. var DisplayPopup = true;
  414. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/rebtel.com#refinfo39">https://www.cheapies.nz/deals/rebtel.com#refinfo39</a>';
  415. }
  416. else if (site.includes('reship.com')) {
  417. var DisplayPopup = true;
  418. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/reship.com#refinfo7">https://www.cheapies.nz/deals/reship.com#refinfo7</a>';
  419. }
  420. else if (site.includes('robertsspaceindustries.com')) {
  421. var DisplayPopup = true;
  422. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/robertsspaceindustries.com#refinfo89">https://www.cheapies.nz/deals/robertsspaceindustries.com#refinfo89</a>';
  423. }
  424. else if (site.includes('sharesies.nz')) {
  425. var DisplayPopup = true;
  426. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/sharesies.nz#refinfo52">https://www.cheapies.nz/deals/sharesies.nz#refinfo52</a>';
  427. }
  428. else if (site.includes('shopback.com.au')) {
  429. var DisplayPopup = true;
  430. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/shopback.com.au#refinfo107">https://www.cheapies.nz/deals/shopback.com.au#refinfo107</a>';
  431. }
  432. else if (site.includes('shoprewards.co.nz')) {
  433. var DisplayPopup = true;
  434. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/shoprewards.co.nz#refinfo48">https://www.cheapies.nz/deals/shoprewards.co.nz#refinfo48</a>';
  435. }
  436. else if (site.includes('skinny.co.nz')) {
  437. var DisplayPopup = true;
  438. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/skinny.co.nz#refinfo47">https://www.cheapies.nz/deals/skinny.co.nz#refinfo47</a>';
  439. }
  440. else if (site.includes('sky.co.nz')) {
  441. var DisplayPopup = true;
  442. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/sky.co.nz#refinfo104">https://www.cheapies.nz/deals/sky.co.nz#refinfo104</a>';
  443. }
  444. else if (site.includes('socialgood.inc')) {
  445. var DisplayPopup = true;
  446. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/socialgood.inc#refinfo98">https://www.cheapies.nz/deals/socialgood.inc#refinfo98</a>';
  447. }
  448. else if (site.includes('getsquareone.app')) {
  449. var DisplayPopup = true;
  450. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/getsquareone.app#refinfo142">https://www.cheapies.nz/deals/getsquareone.app#refinfo142</a>';
  451. }
  452. else if (site.includes('squirrel.co.nz')) {
  453. var DisplayPopup = true;
  454. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/squirrel.co.nz#refinfo169">https://www.cheapies.nz/deals/squirrel.co.nz#refinfo169</a>';
  455. }
  456. else if (site.includes('stacksocial.com')) {
  457. var DisplayPopup = true;
  458. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/stacksocial.com#refinfo4">https://www.cheapies.nz/deals/stacksocial.com#refinfo4</a>';
  459. }
  460. else if (site.includes('hellostake.com')) {
  461. var DisplayPopup = true;
  462. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/hellostake.com#refinfo76">https://www.cheapies.nz/deals/hellostake.com#refinfo76</a>';
  463. }
  464. else if (site.includes('supie.co.nz')) {
  465. var DisplayPopup = true;
  466. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/supie.co.nz#refinfo152">https://www.cheapies.nz/deals/supie.co.nz#refinfo152</a>';
  467. }
  468. else if (site.includes('surfshark.com')) {
  469. var DisplayPopup = true;
  470. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/surfshark.com#refinfo99">https://www.cheapies.nz/deals/surfshark.com#refinfo99</a>';
  471. }
  472. else if (site.includes('swyftx.com.au')) {
  473. var DisplayPopup = true;
  474. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/swyftx.com.au#refinfo125">https://www.cheapies.nz/deals/swyftx.com.au#refinfo125</a>';
  475. }
  476. else if (site.includes('teddy.nz')) {
  477. var DisplayPopup = true;
  478. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/teddy.nz#refinfo149">https://www.cheapies.nz/deals/teddy.nz#refinfo149</a>';
  479. }
  480. else if (site.includes('tesla.com')) {
  481. var DisplayPopup = true;
  482. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/tesla.com#refinfo105">https://www.cheapies.nz/deals/tesla.com#refinfo105</a>';
  483. }
  484. else if (site.includes('theiconic.co.nz')) {
  485. var DisplayPopup = true;
  486. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/theiconic.co.nz#refinfo151">https://www.cheapies.nz/deals/theiconic.co.nz#refinfo151</a>';
  487. }
  488. else if (site.includes('thesleepstore.co.nz')) {
  489. var DisplayPopup = true;
  490. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/thesleepstore.co.nz#refinfo90">https://www.cheapies.nz/deals/thesleepstore.co.nz#refinfo90</a>';
  491. }
  492. else if (site.includes('tigerbrokers.nz')) {
  493. var DisplayPopup = true;
  494. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/tigerbrokers.nz#refinfo127">https://www.cheapies.nz/deals/tigerbrokers.nz#refinfo127</a>';
  495. }
  496. else if (site.includes('tiktok.com')) {
  497. var DisplayPopup = true;
  498. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/tiktok.com#refinfo122">https://www.cheapies.nz/deals/tiktok.com#refinfo122</a>';
  499. }
  500. else if (site.includes('topcashback.co.uk')) {
  501. var DisplayPopup = true;
  502. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/topcashback.co.uk#refinfo19">https://www.cheapies.nz/deals/topcashback.co.uk#refinfo19</a>';
  503. }
  504. else if (site.includes('topcashback.com')) {
  505. var DisplayPopup = true;
  506. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/topcashback.com#refinfo13">https://www.cheapies.nz/deals/topcashback.com#refinfo13</a>';
  507. }
  508. else if (site.includes('vitahealth.co.nz')) {
  509. var DisplayPopup = true;
  510. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/vitahealth.co.nz#refinfo165">https://www.cheapies.nz/deals/vitahealth.co.nz#refinfo165</a>';
  511. }
  512. else if (site.includes('vultr.com')) {
  513. var DisplayPopup = true;
  514. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/vultr.com#refinfo45">https://www.cheapies.nz/deals/vultr.com#refinfo45</a>';
  515. }
  516. else if (site.includes('willandable.co.nz')) {
  517. var DisplayPopup = true;
  518. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/willandable.co.nz#refinfo92">https://www.cheapies.nz/deals/willandable.co.nz#refinfo92</a>';
  519. }
  520. else if (site.includes('windscribe.com')) {
  521. var DisplayPopup = true;
  522. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/windscribe.com#refinfo101">https://www.cheapies.nz/deals/windscribe.com#refinfo101</a>';
  523. }
  524. else if (site.includes('winecentral.co.nz')) {
  525. var DisplayPopup = true;
  526. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/winecentral.co.nz#refinfo146">https://www.cheapies.nz/deals/winecentral.co.nz#refinfo146</a>';
  527. }
  528. else if (site.includes('wirexapp.com')) {
  529. var DisplayPopup = true;
  530. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/wirexapp.com#refinfo121">https://www.cheapies.nz/deals/wirexapp.com#refinfo121</a>';
  531. }
  532. else if (site.includes('transferwise.com')) {
  533. var DisplayPopup = true;
  534. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/transferwise.com#refinfo46">https://www.cheapies.nz/deals/transferwise.com#refinfo46</a>';
  535. }
  536. else if (site.includes('woop.co.nz')) {
  537. var DisplayPopup = true;
  538. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/woop.co.nz#refinfo82">https://www.cheapies.nz/deals/woop.co.nz#refinfo82</a>';
  539. }
  540. else if (site.includes('youneedabudget.com')) {
  541. var DisplayPopup = true;
  542. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/youneedabudget.com#refinfo56">https://www.cheapies.nz/deals/youneedabudget.com#refinfo56</a>';
  543. }
  544. else if (site.includes('yukithreads.com')) {
  545. var DisplayPopup = true;
  546. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/yukithreads.com#refinfo129">https://www.cheapies.nz/deals/yukithreads.com#refinfo129</a>';
  547. }
  548. else if (site.includes('z.co.nz')) {
  549. var DisplayPopup = true;
  550. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/z.co.nz#refinfo147">https://www.cheapies.nz/deals/z.co.nz#refinfo147</a>';
  551. }
  552. else if (site.includes('zennioptical.com')) {
  553. var DisplayPopup = true;
  554. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/zennioptical.com#refinfo132">https://www.cheapies.nz/deals/zennioptical.com#refinfo132</a>';
  555. }
  556. else if (site.includes('zoomy.co.nz')) {
  557. var DisplayPopup = true;
  558. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/zoomy.co.nz#refinfo23">https://www.cheapies.nz/deals/zoomy.co.nz#refinfo23</a>';
  559. }
  560. else if (site.includes('zwift.com')) {
  561. var DisplayPopup = true;
  562. contentHTML += 'Referral: <a href="https://www.cheapies.nz/deals/zwift.com#refinfo170">https://www.cheapies.nz/deals/zwift.com#refinfo170</a>';
  563. }
  564. else if (site.includes('ascolour.co.nz')) {
  565. var DisplayPopup = true;
  566. contentHTML += 'Clearance: <a href="https://www.ascolour.co.nz/sale/">https://www.ascolour.co.nz/sale/</a>';
  567. }
  568. else if (site.includes('asics.com')) {
  569. var DisplayPopup = true;
  570. contentHTML += 'Clearance: <a href="https://www.asics.com/nz/en-nz/clearance/">https://www.asics.com/nz/en-nz/clearance/</a>';
  571. }
  572. else if (site.includes('blitzsurf.co.nz')) {
  573. var DisplayPopup = true;
  574. contentHTML += 'Clearance: <a href="https://www.blitzsurf.co.nz/estore/category/clearance.aspx">https://www.blitzsurf.co.nz/estore/category/clearance.aspx</a>';
  575. }
  576. else if (site.includes('cactusoutdoor.co.nz')) {
  577. var DisplayPopup = true;
  578. contentHTML += 'Clearance: <a href="https://cactusoutdoor.co.nz/collections/clearance-all">https://cactusoutdoor.co.nz/collections/clearance-all</a>';
  579. }
  580. else if (site.includes('eccoshoes.co.nz')) {
  581. var DisplayPopup = true;
  582. contentHTML += 'Clearance: <a href="https://www.eccoshoes.co.nz/shop/clearance/">https://www.eccoshoes.co.nz/shop/clearance/</a>';
  583. }
  584. else if (site.includes('furniturezone.co.nz')) {
  585. var DisplayPopup = true;
  586. contentHTML += 'Clearance: <a href="https://www.furniturezone.co.nz/clearance">https://www.furniturezone.co.nz/clearance</a>';
  587. }
  588. else if (site.includes('hannahs.co.nz')) {
  589. var DisplayPopup = true;
  590. contentHTML += 'Clearance: <a href="https://www.hannahs.co.nz/sale/clearance?_sl=2/">https://www.hannahs.co.nz/sale/clearance?_sl=2/</a>';
  591. }
  592. else if (site.includes('hyperride.co.nz')) {
  593. var DisplayPopup = true;
  594. contentHTML += 'Clearance: <a href="https://www.hyperride.co.nz/products/clearance?pgSort=price/">https://www.hyperride.co.nz/products/clearance?pgSort=price/</a>';
  595. }
  596. else if (site.includes('kathmandu.co.nz')) {
  597. var DisplayPopup = true;
  598. contentHTML += 'Clearance: <a href="https://www.kathmandu.co.nz/sale.html">https://www.kathmandu.co.nz/sale.html</a>';
  599. }
  600. else if (site.includes('kmart.co.nz')) {
  601. var DisplayPopup = true;
  602. contentHTML += 'Clearance: <a href="https://www.kmart.co.nz/category/men/clearance-mens-clothing/">https://www.kmart.co.nz/category/men/clearance-mens-clothing/</a> <br><br> <a href="https://www.kmart.co.nz/category/kids-and-baby/clearance-baby/?sortBy=price-low-to-high">https://www.kmart.co.nz/category/kids-and-baby/clearance-baby/?sortBy=price-low-to-high</a> <br><br> <a href="https://www.kmart.co.nz/category/tech/technology-clearance/?sortBy=price-low-to-high">https://www.kmart.co.nz/category/tech/technology-clearance/?sortBy=price-low-to-high</a> <br><br> <a href="https://www.kmart.co.nz/category/home-and-living/home-and-living-by-category/?sortBy=price-low-to-high">https://www.kmart.co.nz/category/home-and-living/home-and-living-by-category/?sortBy=price-low-to-high</a>';
  603. }
  604. else if (site.includes('macpac.co.nz')) {
  605. var DisplayPopup = true;
  606. contentHTML += 'Clearance: <a href="https://www.macpac.co.nz/clearance/">https://www.macpac.co.nz/clearance/</a>';
  607. }
  608. else if (site.includes('newbalance.co.nz')) {
  609. var DisplayPopup = true;
  610. contentHTML += 'Clearance: <a href="https://www.newbalance.co.nz/clearance/">https://www.newbalance.co.nz/clearance/</a>';
  611. }
  612. else if (site.includes('outbacktrading.co.nz')) {
  613. var DisplayPopup = true;
  614. contentHTML += 'Clearance: <a href="https://www.outbacktrading.co.nz/collections/clearance">https://www.outbacktrading.co.nz/collections/clearance</a>';
  615. }
  616. else if (site.includes('patmenziesshoes.co.nz')) {
  617. var DisplayPopup = true;
  618. contentHTML += 'Clearance: <a href="https://www.patmenziesshoes.co.nz/clearance">https://www.patmenziesshoes.co.nz/clearance</a>';
  619. }
  620. else if (site.includes('postie.co.nz')) {
  621. var DisplayPopup = true;
  622. contentHTML += 'Clearance: <a href="https://www.postie.co.nz/sale-clearance/">https://www.postie.co.nz/sale-clearance/</a>';
  623. }
  624. else if (site.includes('smartwool.co.nz')) {
  625. var DisplayPopup = true;
  626. contentHTML += 'Clearance: <a href="https://www.smartwool.co.nz/collections/clearance">https://www.smartwool.co.nz/collections/clearance</a>';
  627. }
  628. else if (site.includes('stoneycreek.co.nz')) {
  629. var DisplayPopup = true;
  630. contentHTML += 'Clearance: <a href="https://www.stoneycreek.co.nz/clearance">https://www.stoneycreek.co.nz/clearance</a>';
  631. }
  632. else if (site.includes('swanndri.co.nz')) {
  633. var DisplayPopup = true;
  634. contentHTML += 'Clearance: <a href="https://www.swanndri.co.nz/outlet.html/">https://www.swanndri.co.nz/outlet.html/</a>';
  635. }
  636. else if (site.includes('timberland.co.nz')) {
  637. var DisplayPopup = true;
  638. contentHTML += 'Clearance: <a href="https://www.timberland.co.nz/clearance">https://www.timberland.co.nz/clearance</a>';
  639. }
  640. else if (site.includes('caros.co.nz')) {
  641. var DisplayPopup = true;
  642. contentHTML += 'Clearance: <a href="https://www.caros.co.nz/latest-deals/don-t-miss-these/clearance-deals.html">https://www.caros.co.nz/latest-deals/don-t-miss-these/clearance-deals.html</a>';
  643. }
  644. else if (site.includes('keacookies.co.nz')) {
  645. var DisplayPopup = true;
  646. contentHTML += 'Clearance: <a href="https://www.keacookies.co.nz/cookies/broken-cookies-seconds/">https://www.keacookies.co.nz/cookies/broken-cookies-seconds/</a>';
  647. }
  648. else if (site.includes('munchtime.co.nz')) {
  649. var DisplayPopup = true;
  650. contentHTML += 'Clearance: <a href="https://munchtime.co.nz/product-category/clearance-deals//">https://munchtime.co.nz/product-category/clearance-deals//</a>';
  651. }
  652. else if (site.includes('chemistwarehouse.co.nz')) {
  653. var DisplayPopup = true;
  654. contentHTML += 'Clearance: <a href="https://www.chemistwarehouse.co.nz/shop-online/3240/clearance">https://www.chemistwarehouse.co.nz/shop-online/3240/clearance</a>';
  655. }
  656. else if (site.includes('elitefitness.co.nz')) {
  657. var DisplayPopup = true;
  658. contentHTML += 'Clearance: <a href="https://www.elitefitness.co.nz/clearance/">https://www.elitefitness.co.nz/clearance/</a>';
  659. }
  660. else if (site.includes('health2000.co.nz')) {
  661. var DisplayPopup = true;
  662. contentHTML += 'Clearance: <a href="https://www.health2000.co.nz/clearance-sales/">https://www.health2000.co.nz/clearance-sales/</a>';
  663. }
  664. else if (site.includes('nzmuscle.co.nz')) {
  665. var DisplayPopup = true;
  666. contentHTML += 'Clearance: <a href="https://www.nzmuscle.co.nz/clearance/">https://www.nzmuscle.co.nz/clearance/</a>';
  667. }
  668. else if (site.includes('pharmacydirect.co.nz')) {
  669. var DisplayPopup = true;
  670. contentHTML += 'Clearance: <a href="https://www.pharmacydirect.co.nz/Clearance/">https://www.pharmacydirect.co.nz/Clearance/</a>';
  671. }
  672. else if (site.includes('sprintfit.co.nz')) {
  673. var DisplayPopup = true;
  674. contentHTML += 'Clearance: <a href="https://www.sprintfit.co.nz/products/clearance">https://www.sprintfit.co.nz/products/clearance</a>';
  675. }
  676. else if (site.includes('adairs.co.nz')) {
  677. var DisplayPopup = true;
  678. contentHTML += 'Clearance: <a href="https://www.adairs.co.nz/sale/nz-clearance/">https://www.adairs.co.nz/sale/nz-clearance/</a>';
  679. }
  680. else if (site.includes('applianceoutlet.co.nz')) {
  681. var DisplayPopup = true;
  682. contentHTML += 'Clearance: <a href="https://applianceoutlet.co.nz/">https://applianceoutlet.co.nz/</a>';
  683. }
  684. else if (site.includes('bedbathntable.co.nz')) {
  685. var DisplayPopup = true;
  686. contentHTML += 'Clearance: <a href="https://www.bedbathntable.co.nz/clearance-online">https://www.bedbathntable.co.nz/clearance-online</a>';
  687. }
  688. else if (site.includes('bissell.co.nz')) {
  689. var DisplayPopup = true;
  690. contentHTML += 'Clearance: <a href="https://www.bissell.co.nz/collections/clearance">https://www.bissell.co.nz/collections/clearance</a>';
  691. }
  692. else if (site.includes('briscoes.co.nz')) {
  693. var DisplayPopup = true;
  694. contentHTML += 'Clearance: <a href="https://www.briscoes.co.nz/clearance">https://www.briscoes.co.nz/clearance</a>';
  695. }
  696. else if (site.includes('cocorepublic.co.nz')) {
  697. var DisplayPopup = true;
  698. contentHTML += 'Clearance: <a href="https://www.cocorepublic.co.nz/clearance.html">https://www.cocorepublic.co.nz/clearance.html</a>';
  699. }
  700. else if (site.includes('danskemobler.co.nz')) {
  701. var DisplayPopup = true;
  702. contentHTML += 'Clearance: <a href="https://danskemobler.co.nz/Clearance">https://danskemobler.co.nz/Clearance</a>';
  703. }
  704. else if (site.includes('earlysettler.co.nz')) {
  705. var DisplayPopup = true;
  706. contentHTML += 'Clearance: <a href="https://earlysettler.co.nz/collections/clearance-offers">https://earlysettler.co.nz/collections/clearance-offers</a>';
  707. }
  708. else if (site.includes('farmers.co.nz')) {
  709. var DisplayPopup = true;
  710. contentHTML += 'Clearance: <a href="https://www.farmers.co.nz/clearance">https://www.farmers.co.nz/clearance</a>';
  711. }
  712. else if (site.includes('freedomfurniture.co.nz')) {
  713. var DisplayPopup = true;
  714. contentHTML += 'Clearance: <a href="https://www.freedomfurniture.co.nz/c/sale-and-clearance">https://www.freedomfurniture.co.nz/c/sale-and-clearance</a>';
  715. }
  716. else if (site.includes('harveyfurnishings.co.nz')) {
  717. var DisplayPopup = true;
  718. contentHTML += 'Clearance: <a href="https://www.harveyfurnishings.co.nz/collections/clearance-offers">https://www.harveyfurnishings.co.nz/collections/clearance-offers</a>';
  719. }
  720. else if (site.includes('ifurniture.co.nz')) {
  721. var DisplayPopup = true;
  722. contentHTML += 'Clearance: <a href="https://www.ifurniture.co.nz/clearance-sale-deals">https://www.ifurniture.co.nz/clearance-sale-deals</a>';
  723. }
  724. else if (site.includes('mightyape.co.nz')) {
  725. var DisplayPopup = true;
  726. contentHTML += 'Clearance: <a href="https://www.cheapies.nz/wiki/https:www.mightyape.co.nz_clearance">https://www.cheapies.nz/wiki/https:www.mightyape.co.nz_clearance</a>';
  727. }
  728. else if (site.includes('mocka.co.nz')) {
  729. var DisplayPopup = true;
  730. contentHTML += 'Clearance: <a href="https://www.mocka.co.nz/clearance-items/">https://www.mocka.co.nz/clearance-items/</a>';
  731. }
  732. else if (site.includes('nisbets.co.nz')) {
  733. var DisplayPopup = true;
  734. contentHTML += 'Clearance: <a href="https://www.nisbets.co.nz/clearance-and-special-offers/clearance/_/a33-2">https://www.nisbets.co.nz/clearance-and-special-offers/clearance/_/a33-2</a>';
  735. }
  736. else if (site.includes('nood.co.nz')) {
  737. var DisplayPopup = true;
  738. contentHTML += 'Clearance: <a href="https://www.nood.co.nz/clearance">https://www.nood.co.nz/clearance</a>';
  739. }
  740. else if (site.includes('stevens.co.nz')) {
  741. var DisplayPopup = true;
  742. contentHTML += 'Clearance: <a href="https://www.stevens.co.nz/clearance">https://www.stevens.co.nz/clearance</a>';
  743. }
  744. else if (site.includes('takingshape.com')) {
  745. var DisplayPopup = true;
  746. contentHTML += 'Clearance: <a href="https://takingshape.com/NZ/clearance/cardis-coats-and-jackets/">https://takingshape.com/NZ/clearance/cardis-coats-and-jackets/</a>';
  747. }
  748. else if (site.includes('thedesignstore.co.nz')) {
  749. var DisplayPopup = true;
  750. contentHTML += 'Clearance: <a href="https://www.thedesignstore.co.nz/collections/clearance-sale">https://www.thedesignstore.co.nz/collections/clearance-sale</a>';
  751. }
  752. else if (site.includes('thelightingoutlet.co.nz')) {
  753. var DisplayPopup = true;
  754. contentHTML += 'Clearance: <a href="https://thelightingoutlet.co.nz/collections/sales-clearance">https://thelightingoutlet.co.nz/collections/sales-clearance</a>';
  755. }
  756. else if (site.includes('thewarehouse.co.nz')) {
  757. var DisplayPopup = true;
  758. contentHTML += 'Clearance: <a href="https://www.thewarehouse.co.nz/c/specials/clearance">https://www.thewarehouse.co.nz/c/specials/clearance</a>';
  759. }
  760. else if (site.includes('ufl.co.nz')) {
  761. var DisplayPopup = true;
  762. contentHTML += 'Clearance: <a href="https://www.cheapies.nz/wiki/https:www.ufl.co.nz_product-category_clearance">https://www.cheapies.nz/wiki/https:www.ufl.co.nz_product-category_clearance</a>';
  763. }
  764. else if (site.includes('musicworks.co.nz')) {
  765. var DisplayPopup = true;
  766. contentHTML += 'Clearance: <a href="https://www.musicworks.co.nz/clearance/">https://www.musicworks.co.nz/clearance/</a>';
  767. }
  768. else if (site.includes('rockshop.co.nz')) {
  769. var DisplayPopup = true;
  770. contentHTML += 'Clearance: <a href="https://www.rockshop.co.nz/clearance">https://www.rockshop.co.nz/clearance</a>';
  771. }
  772. else if (site.includes('officemax.co.nz')) {
  773. var DisplayPopup = true;
  774. contentHTML += 'Clearance: <a href="https://www.officemax.co.nz/Clearance">https://www.officemax.co.nz/Clearance</a>';
  775. }
  776. else if (site.includes('warehousestationery.co.nz')) {
  777. var DisplayPopup = true;
  778. contentHTML += 'Clearance: <a href="https://www.warehousestationery.co.nz/deals/clearance">https://www.warehousestationery.co.nz/deals/clearance</a>';
  779. }
  780. else if (site.includes('whitcoulls.co.nz')) {
  781. var DisplayPopup = true;
  782. contentHTML += 'Clearance: <a href="https://www.whitcoulls.co.nz/clearance">https://www.whitcoulls.co.nz/clearance</a>';
  783. }
  784. else if (site.includes('funkygifts.co.nz')) {
  785. var DisplayPopup = true;
  786. contentHTML += 'Clearance: <a href="https://funkygifts.co.nz/collections/sale">https://funkygifts.co.nz/collections/sale</a>';
  787. }
  788. else if (site.includes('greenmachine.nz')) {
  789. var DisplayPopup = true;
  790. contentHTML += 'Clearance: <a href="https://greenmachine.nz/collections/sale/clearance">https://greenmachine.nz/collections/sale/clearance</a>';
  791. }
  792. else if (site.includes('99bikes.co.nz')) {
  793. var DisplayPopup = true;
  794. contentHTML += 'Clearance: <a href="https://www.99bikes.co.nz/collections/clearance">https://www.99bikes.co.nz/collections/clearance</a>';
  795. }
  796. else if (site.includes('adventureoutlet.co.nz')) {
  797. var DisplayPopup = true;
  798. contentHTML += 'Clearance: <a href="https://adventureoutlet.co.nz/">https://adventureoutlet.co.nz/</a>';
  799. }
  800. else if (site.includes('armyandoutdoors.co.nz')) {
  801. var DisplayPopup = true;
  802. contentHTML += 'Clearance: <a href="https://www.armyandoutdoors.co.nz/collections/clearance-stock">https://www.armyandoutdoors.co.nz/collections/clearance-stock</a>';
  803. }
  804. else if (site.includes('evocycles.co.nz')) {
  805. var DisplayPopup = true;
  806. contentHTML += 'Clearance: <a href="https://www.evocycles.co.nz/clearance">https://www.evocycles.co.nz/clearance</a>';
  807. }
  808. else if (site.includes('nzfarmsource.co.nz')) {
  809. var DisplayPopup = true;
  810. contentHTML += 'Clearance: <a href="https://store.nzfarmsource.co.nz/store/clearance">https://store.nzfarmsource.co.nz/store/clearance</a>';
  811. }
  812. else if (site.includes('furtherfaster.co.nz')) {
  813. var DisplayPopup = true;
  814. contentHTML += 'Clearance: <a href="https://www.furtherfaster.co.nz/collections/clearance">https://www.furtherfaster.co.nz/collections/clearance</a>';
  815. }
  816. else if (site.includes('golfwarehouse.nz')) {
  817. var DisplayPopup = true;
  818. contentHTML += 'Clearance: <a href="https://www.golfwarehouse.nz/collections/clearance">https://www.golfwarehouse.nz/collections/clearance</a>';
  819. }
  820. else if (site.includes('hunterselement.co.nz')) {
  821. var DisplayPopup = true;
  822. contentHTML += 'Clearance: <a href="https://www.hunterselement.co.nz/collections/hunting-outlet-clearance-sale">https://www.hunterselement.co.nz/collections/hunting-outlet-clearance-sale</a>';
  823. }
  824. else if (site.includes('huntingandfishing.co.nz')) {
  825. var DisplayPopup = true;
  826. contentHTML += 'Clearance: <a href="https://www.huntingandfishing.co.nz/clearance">https://www.huntingandfishing.co.nz/clearance</a>';
  827. }
  828. else if (site.includes('livingsimply.co.nz')) {
  829. var DisplayPopup = true;
  830. contentHTML += 'Clearance: <a href="https://www.livingsimply.co.nz/estore/category/clearance.aspx">https://www.livingsimply.co.nz/estore/category/clearance.aspx</a>';
  831. }
  832. else if (site.includes('mountainwarehouse.com')) {
  833. var DisplayPopup = true;
  834. contentHTML += 'Clearance: <a href="https://www.mountainwarehouse.com/nz/clearance/">https://www.mountainwarehouse.com/nz/clearance/</a>';
  835. }
  836. else if (site.includes('nzboardstore.co.nz')) {
  837. var DisplayPopup = true;
  838. contentHTML += 'Clearance: <a href="https://nzboardstore.co.nz/clearance/">https://nzboardstore.co.nz/clearance/</a>';
  839. }
  840. else if (site.includes('playerssports.co.nz')) {
  841. var DisplayPopup = true;
  842. contentHTML += 'Clearance: <a href="https://www.playerssports.co.nz/outlet">https://www.playerssports.co.nz/outlet</a>';
  843. }
  844. else if (site.includes('probikekit.co.nz')) {
  845. var DisplayPopup = true;
  846. contentHTML += 'Clearance: <a href="https://www.probikekit.co.nz/clearance.list">https://www.probikekit.co.nz/clearance.list</a>';
  847. }
  848. else if (site.includes('rebelsport.co.nz')) {
  849. var DisplayPopup = true;
  850. contentHTML += 'Clearance: <a href="https://www.rebelsport.co.nz/clearance/">https://www.rebelsport.co.nz/clearance/</a>';
  851. }
  852. else if (site.includes('suuntostore.co.nz')) {
  853. var DisplayPopup = true;
  854. contentHTML += 'Clearance: <a href="https://suuntostore.co.nz/collections/clearance">https://suuntostore.co.nz/collections/clearance</a>';
  855. }
  856. else if (site.includes('torpedo7.co.nz')) {
  857. var DisplayPopup = true;
  858. contentHTML += 'Clearance: <a href="https://www.torpedo7.co.nz/shop/clearance">https://www.torpedo7.co.nz/shop/clearance</a>';
  859. }
  860. else if (site.includes('dell.com')) {
  861. var DisplayPopup = true;
  862. contentHTML += 'Clearance: <a href="https://www.dell.com/en-nz/lp/clearance">https://www.dell.com/en-nz/lp/clearance</a>';
  863. }
  864. else if (site.includes('dicksmith.co.nz')) {
  865. var DisplayPopup = true;
  866. contentHTML += 'Clearance: <a href="https://www.dicksmith.co.nz/dn/c/clearance/?deals_from=dse">https://www.dicksmith.co.nz/dn/c/clearance/?deals_from=dse</a>';
  867. }
  868. else if (site.includes('harveynorman.co.nz')) {
  869. var DisplayPopup = true;
  870. contentHTML += 'Clearance: <a href="https://www.harveynorman.co.nz/clearance/">https://www.harveynorman.co.nz/clearance/</a>';
  871. }
  872. else if (site.includes('jbhifi.co.nz')) {
  873. var DisplayPopup = true;
  874. contentHTML += 'Clearance: <a href="https://www.jbhifi.co.nz/features/online-clearance/">https://www.jbhifi.co.nz/features/online-clearance/</a>';
  875. }
  876. else if (site.includes('noelleeming.co.nz')) {
  877. var DisplayPopup = true;
  878. contentHTML += 'Clearance: <a href="https://www.noelleeming.co.nz/c/clearance">https://www.noelleeming.co.nz/c/clearance</a>';
  879. }
  880. else if (site.includes('pbtech.co.nz')) {
  881. var DisplayPopup = true;
  882. contentHTML += 'Clearance: <a href="https://www.pbtech.co.nz/clearance">https://www.pbtech.co.nz/clearance</a>';
  883. }
  884. else if (site.includes('nzsafetyblackwoods.co.nz')) {
  885. var DisplayPopup = true;
  886. contentHTML += 'Clearance: <a href="https://nzsafetyblackwoods.co.nz/en/product/clearancelist?categoryId=0&page=0&sortby=&count=50">https://nzsafetyblackwoods.co.nz/en/product/clearancelist?categoryId=0&page=0&sortby=&count=50</a>';
  887. }
  888. else if (site.includes('repco.co.nz')) {
  889. var DisplayPopup = true;
  890. contentHTML += 'Clearance: <a href="https://www.repco.co.nz/clearance/c/2538381394">https://www.repco.co.nz/clearance/c/2538381394</a>';
  891. }
  892. else if (site.includes('royalwolf.co.nz')) {
  893. var DisplayPopup = true;
  894. contentHTML += 'Clearance: <a href="https://www.royalwolf.co.nz/clearance">https://www.royalwolf.co.nz/clearance</a>';
  895. }
  896. else if (site.includes('supercheapauto.co.nz')) {
  897. var DisplayPopup = true;
  898. contentHTML += 'Clearance: <a href="https://www.supercheapauto.co.nz/clearance-going-going-gone">https://www.supercheapauto.co.nz/clearance-going-going-gone</a>';
  899. }
  900. else if (site.includes('thetoolshed.co.nz')) {
  901. var DisplayPopup = true;
  902. contentHTML += 'Clearance: <a href="https://www.thetoolshed.co.nz/product/clearance">https://www.thetoolshed.co.nz/product/clearance</a>';
  903. }
  904. else if (site.includes('tiledepot.co.nz')) {
  905. var DisplayPopup = true;
  906. contentHTML += 'Clearance: <a href="https://www.tiledepot.co.nz/browse/tiles/50-off-clearance-lines">https://www.tiledepot.co.nz/browse/tiles/50-off-clearance-lines</a>';
  907. }
  908. else if (site.includes('tradeworkwear.co.nz')) {
  909. var DisplayPopup = true;
  910. contentHTML += 'Clearance: <a href="https://www.tradeworkwear.co.nz/specials/clearance.html">https://www.tradeworkwear.co.nz/specials/clearance.html</a>';
  911. }
  912. else if (site.includes('hatch.co.nz')) {
  913. var DisplayPopup = true;
  914. contentHTML += 'Clearance: <a href="https://hatch.co.nz/collections/summer-clothing-sale">https://hatch.co.nz/collections/summer-clothing-sale</a>';
  915. }
  916. else if (site.includes('jamiekay.co.nz')) {
  917. var DisplayPopup = true;
  918. contentHTML += 'Clearance: <a href="https://jamiekay.co.nz/collections/clearance">https://jamiekay.co.nz/collections/clearance</a>';
  919. }
  920. else if (site.includes('thcc.nz')) {
  921. var DisplayPopup = true;
  922. contentHTML += 'Clearance: <a href="https://thcc.nz/">https://thcc.nz/</a>';
  923. }
  924. else if (site.includes('toyco.co.nz')) {
  925. var DisplayPopup = true;
  926. contentHTML += 'Clearance: <a href="https://www.toyco.co.nz/collections/clearance">https://www.toyco.co.nz/collections/clearance</a>';
  927. }
  928. else if (site.includes('burgerwisconsin.co.nz')) {
  929. var DisplayPopup = true;
  930. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/20243">Free Burger, but you now need to make a purchase in the previous 6 months to get the birthday deal</a>';
  931. }
  932. else if (site.includes('chatime.co.nz')) {
  933. var DisplayPopup = true;
  934. contentHTML += 'Birthday deal: <a href="https://www.chatime.co.nz/">Free drink on your birthday for Loyaltea members</a>';
  935. }
  936. else if (site.includes('cobb.co.nz')) {
  937. var DisplayPopup = true;
  938. contentHTML += 'Birthday deal: <a href="http://www.cobb.co.nz/online/promotions.csn">Free Main Meal (Free Main Meal and Dessert for children, Free Two Course Meal for Senior Citizens), when accompanied by three paying adult guests and dining at a participating Cobb & Co location seven days either side of your actual birthday</a>';
  939. }
  940. else if (site.includes('coffeeculture.co.nz')) {
  941. var DisplayPopup = true;
  942. contentHTML += 'Birthday deal: <a href="https://coffeeculture.co.nz/hot-right-now/culturecard-2/">Free 8oz hot drink</a>';
  943. }
  944. else if (site.includes('columbuscoffee.co.nz')) {
  945. var DisplayPopup = true;
  946. contentHTML += 'Birthday deal: <a href="http://www.columbuscoffee.co.nz/columbus-rewards">updated: Purchase one coffee and receive a 2nd one free on your birthday for members of Columbus Rewards</a>';
  947. }
  948. else if (site.includes('dennys.co.nz')) {
  949. var DisplayPopup = true;
  950. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/865">Buy One Get One Free Main Meal on your birthday, when dining with a paying guest (Save up to $29.80)</a>';
  951. }
  952. else if (site.includes('gengys.co.nz')) {
  953. var DisplayPopup = true;
  954. contentHTML += 'Birthday deal: <a href="http://www.gengys.co.nz/#!special/c1dw6">Dine for $1 on your birthday when accompanied by three adult guests paying full price</a>';
  955. }
  956. else if (site.includes('healthpost.co.nz')) {
  957. var DisplayPopup = true;
  958. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/4105">Free $10 on your birthday for HealthPost account holders</a>';
  959. }
  960. else if (site.includes('jamaicablue.co.nz')) {
  961. var DisplayPopup = true;
  962. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/21489">Free Slice of Cake for members of the Caribbean Crew</a>';
  963. }
  964. else if (site.includes('joes.co.nz')) {
  965. var DisplayPopup = true;
  966. contentHTML += 'Birthday deal: <a href="https://www.joes.co.nz/">$10 credit for your birthday when added in app</a>';
  967. }
  968. else if (site.includes('lonestar.co.nz')) {
  969. var DisplayPopup = true;
  970. contentHTML += 'Birthday deal: <a href="https://www.lonestar.co.nz/loyal/">$20 credit if you sign up on the app</a>';
  971. }
  972. else if (site.includes('madmex.co.nz')) {
  973. var DisplayPopup = true;
  974. contentHTML += 'Birthday deal: <a href="https://madmex.co.nz/loyalty/">Free burrito on your birthday</a>';
  975. }
  976. else if (site.includes('mexicalifresh.co.nz')) {
  977. var DisplayPopup = true;
  978. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/3409">Free Burrito or other menu item on your birthday for members of the Cabana Club</a>';
  979. }
  980. else if (site.includes('mexico.net.nz')) {
  981. var DisplayPopup = true;
  982. contentHTML += 'Birthday deal: <a href="https://www.mexico.net.nz/lovemexico/">$10 credit for your birthday from if you join their app</a>';
  983. }
  984. else if (site.includes('members.muffinbreak.co.nz')) {
  985. var DisplayPopup = true;
  986. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/5388">Free Muffin for members of the Muffin Break Club</a>';
  987. }
  988. else if (site.includes('nandos.co.nz')) {
  989. var DisplayPopup = true;
  990. contentHTML += 'Birthday deal: <a href="https://www.nandos.co.nz/help">$15 credit if signed up to Peri-perks before birthday month and have made a purchase</a>';
  991. }
  992. else if (site.includes('nzvenueco.nz')) {
  993. var DisplayPopup = true;
  994. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/26121">$20 Credit</a>';
  995. }
  996. else if (site.includes('starbucks.co.nz')) {
  997. var DisplayPopup = true;
  998. contentHTML += 'Birthday deal: <a href="https://www.starbucks.co.nz/rewards">Free drink upgrade</a>';
  999. }
  1000. else if (site.includes('subway.co.nz')) {
  1001. var DisplayPopup = true;
  1002. contentHTML += 'Birthday deal: <a href="https://www.subway.co.nz/">Free Cookie and 600ml Coke/750ml Pump on any sub/salad/wrap purchase (SubCard required)</a>';
  1003. }
  1004. else if (site.includes('thecheesecakeshop.co.nz')) {
  1005. var DisplayPopup = true;
  1006. contentHTML += 'Birthday deal: <a href="https://www.thecheesecakeshop.co.nz/cake-vouchers">Free $5 Voucher (signup required)</a>';
  1007. }
  1008. else if (site.includes('valentines.co.nz')) {
  1009. var DisplayPopup = true;
  1010. contentHTML += 'Birthday deal: <a href="http://valentines.co.nz/promotions">Eat Free on your birthday, when accompanied by three full paying guests</a>';
  1011. }
  1012. else if (site.includes('krispykreme.co.nz')) {
  1013. var DisplayPopup = true;
  1014. contentHTML += 'Birthday deal: <a href="https://www.krispykreme.co.nz/inner-circle">Four-pack of glazed doughnuts for loyalty members or $10 off an online order</a>';
  1015. }
  1016. else if (site.includes('hiderefer.com')) {
  1017. var DisplayPopup = true;
  1018. contentHTML += 'Birthday deal: <a href="http://hiderefer.com/?https://help.banggood.com/help-center/what-is-the-vip-birthday-gift/">2 x $10-$30 coupons depending on VIP level</a>';
  1019. }
  1020. else if (site.includes('kathmandu.co.nz')) {
  1021. var DisplayPopup = true;
  1022. contentHTML += 'Birthday deal: <a href="https://www.kathmandu.co.nz/summit-club">$20 voucher</a>';
  1023. }
  1024. else if (site.includes('kitchenaid.com.au')) {
  1025. var DisplayPopup = true;
  1026. contentHTML += 'Birthday deal: <a href="https://kitchenaid.com.au/">$50 off $250 Spend</a>';
  1027. }
  1028. else if (site.includes('mightyape.co.nz')) {
  1029. var DisplayPopup = true;
  1030. contentHTML += 'Birthday deal: <a href="https://www.mightyape.co.nz/">$10 Voucher</a>';
  1031. }
  1032. else if (site.includes('noelleeming.co.nz')) {
  1033. var DisplayPopup = true;
  1034. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/10993">$20 off $100 Spend during the month of your birthday in-store with Noel Leeming account.</a>';
  1035. }
  1036. else if (site.includes('northbeach.co.nz')) {
  1037. var DisplayPopup = true;
  1038. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/33500">$20 voucher on your birthday (requires Locals membership, discount applies to ONE item, min spend $50).</a>';
  1039. }
  1040. else if (site.includes('themarket.com')) {
  1041. var DisplayPopup = true;
  1042. contentHTML += 'Birthday deal: <a href="https://themarket.com/nz/">$5 off coupon via email (no min spend)</a>';
  1043. }
  1044. else if (site.includes('cosmicnz.co.nz')) {
  1045. var DisplayPopup = true;
  1046. contentHTML += 'Birthday deal: <a href="https://www.cosmicnz.co.nz/loyalty">$10 gift voucher with $25 minimum spend for High Rollers members</a>';
  1047. }
  1048. else if (site.includes('farrofresh.co.nz')) {
  1049. var DisplayPopup = true;
  1050. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/20874">Free Coffee</a>';
  1051. }
  1052. else if (site.includes('habitualfix.co.nz')) {
  1053. var DisplayPopup = true;
  1054. contentHTML += 'Birthday deal: <a href="http://habitualfix.co.nz/terms-and-conditions.html">Free Smoothie for members of Habitual Fix Addicts</a>';
  1055. }
  1056. else if (site.includes('krispykreme.co.nz')) {
  1057. var DisplayPopup = true;
  1058. contentHTML += 'Birthday deal: <a href="https://www.krispykreme.co.nz/offer-terms-conditions">Free 4 pack Original Glazed doughnuts</a>';
  1059. }
  1060. else if (site.includes('longroom.co.nz')) {
  1061. var DisplayPopup = true;
  1062. contentHTML += 'Birthday deal: <a href="https://longroom.co.nz/longpoints/">$50 Birthday Voucher (Must have minimum $200 spend over a two month period.)</a>';
  1063. }
  1064. else if (site.includes('parisianclinic.co.nz')) {
  1065. var DisplayPopup = true;
  1066. contentHTML += 'Birthday deal: <a href="http://www.parisianclinic.co.nz/Free-on-Birthday">Free Treatments on your birthday, when accompanied by three paying friends</a>';
  1067. }
  1068. else if (site.includes('aucklandadventurejet.co.nz')) {
  1069. var DisplayPopup = true;
  1070. contentHTML += 'Birthday deal: <a href="http://www.aucklandadventurejet.co.nz/ride-free-on-your-birthday">Free Jet Boat Ride on your birthday, when accompanied by a full paying adult</a>';
  1071. }
  1072. else if (site.includes('optihealth.co.nz')) {
  1073. var DisplayPopup = true;
  1074. contentHTML += 'Birthday deal: <a href="http://optihealth.co.nz/Promotions/YourBirthdayTreatonus/tabid/5923/language/en-US/Default.aspx">Free One Hour Massage Treatment on your birthday</a>';
  1075. }
  1076. else if (site.includes('gloputt.co.nz')) {
  1077. var DisplayPopup = true;
  1078. contentHTML += 'Birthday deal: <a href="http://www.gloputt.co.nz/">Play for Free on your birthday (conditions apply)</a>';
  1079. }
  1080. else if (site.includes('support.kellytarltons.co.nz')) {
  1081. var DisplayPopup = true;
  1082. contentHTML += 'Birthday deal: <a href="https://support.kellytarltons.co.nz/hc/en-us/articles/115000664392-Can-I-visit-for-free-on-my-Birthday-">Free Entry on your birthday or day before/after if closed. Booking may be required.</a>';
  1083. }
  1084. else if (site.includes('thistleinn.co.nz')) {
  1085. var DisplayPopup = true;
  1086. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/1006">Free Main Meal on your birthday, when accompanied by three paying adult guests</a>';
  1087. }
  1088. else if (site.includes('mamabrown.co.nz')) {
  1089. var DisplayPopup = true;
  1090. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/4728">Buy One Get One Free Main Meal and Drink on your birthday, when dining with a paying guest</a>';
  1091. }
  1092. else if (site.includes('funicular.co.nz')) {
  1093. var DisplayPopup = true;
  1094. contentHTML += 'Birthday deal: <a href="http://www.funicular.co.nz/loyalty-cards">Receive a free coffee on your birthday for Funicular Loyalty Cardholders</a>';
  1095. }
  1096. else if (site.includes('electricavenue.eftplus.co.nz')) {
  1097. var DisplayPopup = true;
  1098. contentHTML += 'Birthday deal: <a href="https://electricavenue.eftplus.co.nz/">Free $25 voucher on your birthday, when accompanied by two paying guests for dinner for members of the Hoff Group VIP Club</a>';
  1099. }
  1100. else if (site.includes('dakotabar.eftplus.co.nz')) {
  1101. var DisplayPopup = true;
  1102. contentHTML += 'Birthday deal: <a href="https://dakotabar.eftplus.co.nz/">Free $25 voucher on your birthday, when accompanied by two paying guests for dinner for members of the Hoff Group VIP Club</a>';
  1103. }
  1104. else if (site.includes('thegreenmanpub.eftplus.co.nz')) {
  1105. var DisplayPopup = true;
  1106. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/1058">Free voucher on your birthday for members of the Greenman VIP Club</a>';
  1107. }
  1108. else if (site.includes('habitualfix.co.nz')) {
  1109. var DisplayPopup = true;
  1110. contentHTML += 'Birthday deal: <a href="http://habitualfix.co.nz/terms-and-conditions.html">Free Smoothie for members of Habitual Fix Addicts</a>';
  1111. }
  1112. else if (site.includes('theblackolive.net')) {
  1113. var DisplayPopup = true;
  1114. contentHTML += 'Birthday deal: <a href="http://www.theblackolive.net/free-birthday-meal.html">Free Meal Voucher</a>';
  1115. }
  1116. else if (site.includes('addictionhair.co.nz')) {
  1117. var DisplayPopup = true;
  1118. contentHTML += 'Birthday deal: <a href="http://addictionhair.co.nz/">Free Style Dry for subscribers of Addiction Hair\'s Monthly Hair and Style newsletter</a>';
  1119. }
  1120. else if (site.includes('nakontong2.co.nz')) {
  1121. var DisplayPopup = true;
  1122. contentHTML += 'Birthday deal: <a href="http://www.nakontong2.co.nz/assets/Special">Free ice cream on your birthday with purchased meal</a>';
  1123. }
  1124. else if (site.includes('offroadnz.co.nz')) {
  1125. var DisplayPopup = true;
  1126. contentHTML += 'Birthday deal: <a href="http://www.offroadnz.co.nz/off-road-nz/raceline-karting-membership_idl=3_idt=3726_id=21850_.html">Free Race (membership required, $5 per year)</a>';
  1127. }
  1128. else if (site.includes('cinnamonrestaurant.co.nz')) {
  1129. var DisplayPopup = true;
  1130. contentHTML += 'Birthday deal: <a href="http://www.cinnamonrestaurant.co.nz/Celebrate.html">Free Main Meal on your birthday, when accompanied by three paying adult guests</a>';
  1131. }
  1132. else if (site.includes('themousetrap.nz')) {
  1133. var DisplayPopup = true;
  1134. contentHTML += 'Birthday deal: <a href="http://www.themousetrap.nz/specials">Free Main Meal on your birthday</a>';
  1135. }
  1136. else if (site.includes('crowdedhouse.co.nz')) {
  1137. var DisplayPopup = true;
  1138. contentHTML += 'Birthday deal: <a href="http://www.crowdedhouse.co.nz/join.php">Free Main Meal on your birthday for members of the Crowded House VIP Club</a>';
  1139. }
  1140. else if (site.includes('indiatoday.co.nz')) {
  1141. var DisplayPopup = true;
  1142. contentHTML += 'Birthday deal: <a href="http://www.indiatoday.co.nz/content/5/">Free Main Meal and Naan Bread, when accompanied by three paying adult guests and dining Sunday - Thursday on the week of your birthday</a>';
  1143. }
  1144. else if (site.includes('themayfair.co.nz')) {
  1145. var DisplayPopup = true;
  1146. contentHTML += 'Birthday deal: <a href="http://themayfair.co.nz/join.php">Free Main Meal on your birthday for members of the Mayfair VIP Club</a>';
  1147. }
  1148. else if (site.includes('bachonbreakwater.co.nz')) {
  1149. var DisplayPopup = true;
  1150. contentHTML += 'Birthday deal: <a href="http://www.bachonbreakwater.co.nz/assets/Special">Free Main Meal for members of the Birthday Club (signup required in-person at the restaurant)</a>';
  1151. }
  1152. else if (site.includes('frederics.co.nz')) {
  1153. var DisplayPopup = true;
  1154. contentHTML += 'Birthday deal: <a href="http://www.frederics.co.nz/content/loyalty-club">Birthday shout for you and your mates for members of the Frederic\'s Loyalty Club</a>';
  1155. }
  1156. else if (site.includes('stagedoorcafe.nz')) {
  1157. var DisplayPopup = true;
  1158. contentHTML += 'Birthday deal: <a href="http://stagedoorcafe.nz/pages/birthday-celebrants-dine-for-free">Eat Free on your birthday, when accompanied by two paying guests</a>';
  1159. }
  1160. else if (site.includes('indianindulgence.co.nz')) {
  1161. var DisplayPopup = true;
  1162. contentHTML += 'Birthday deal: <a href="http://www.indianindulgence.co.nz/">Free Dine In on your birthday (conditions apply)</a>';
  1163. }
  1164. else if (site.includes('indiansummerhill.co.nz')) {
  1165. var DisplayPopup = true;
  1166. contentHTML += 'Birthday deal: <a href="http://indiansummerhill.co.nz/">Free Dine In on your birthday (conditions apply)</a>';
  1167. }
  1168. else if (site.includes('topkapi.co.nz')) {
  1169. var DisplayPopup = true;
  1170. contentHTML += 'Birthday deal: <a href="http://www.topkapi.co.nz/uploads/2/7/5/0/2750207/topkai_vipform_2.pdf">Free Meal on your birthday, when accompanied by two paying guests for members of the Topkapi VIP Club</a>';
  1171. }
  1172. else if (site.includes('cocopelli.co.nz')) {
  1173. var DisplayPopup = true;
  1174. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/85">Free $20 voucher on your birthday for members of the Cocopelli\'s Loyalty Club</a>';
  1175. }
  1176. else if (site.includes('monteithsmerrin.co.nz')) {
  1177. var DisplayPopup = true;
  1178. contentHTML += 'Birthday deal: <a href="http://www.monteithsmerrin.co.nz/#!about/c6oc">Free Meal on your birthday for members of the Merrin Street Brewery Bar Loyalty Club</a>';
  1179. }
  1180. else if (site.includes('myflame.co.nz')) {
  1181. var DisplayPopup = true;
  1182. contentHTML += 'Birthday deal: <a href="http://www.myflame.co.nz/about/birthday-club">Free Main Meal, when dining with a paying guest, or Free Main Meal and Dessert, when accompanied by three paying guests on the week of your birthday for members of the Flame Birthday Club. Free birthday cake also for tables of 8 or more guests.</a>';
  1183. }
  1184. else if (site.includes('freemansdiningroom.co.nz')) {
  1185. var DisplayPopup = true;
  1186. contentHTML += 'Birthday deal: <a href="http://www.freemansdiningroom.co.nz/home/">Free Main Meal, when accompanied by three paying guests for members of The Gastro Club</a>';
  1187. }
  1188. else if (site.includes('christchurchcasino.co.nz')) {
  1189. var DisplayPopup = true;
  1190. contentHTML += 'Birthday deal: <a href="https://www.christchurchcasino.co.nz/players-club/members-benefits/">Player’s Club members earn 10x Bonus Points while gaming on the day of their birthday. Any one day during your birthday month receive at least $15 to use on dining or gaming, when you swipe your membership card at the kiosk or insert it into any gaming machine card.</a>';
  1191. }
  1192. else if (site.includes('spiceparagon.eftplus.co.nz')) {
  1193. var DisplayPopup = true;
  1194. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/6507">Free Main Meal on your birthday, when accompanied by three paying adult guests for members of the Spice Club</a>';
  1195. }
  1196. else if (site.includes('thetwistedhoppub.co.nz')) {
  1197. var DisplayPopup = true;
  1198. contentHTML += 'Birthday deal: <a href="http://www.thetwistedhoppub.co.nz/Crafted-Beer/Loyalty-Club">Free Meal and a Beer on your birthday (signup required $10, conditions apply)</a>';
  1199. }
  1200. else if (site.includes('procope.co.nz')) {
  1201. var DisplayPopup = true;
  1202. contentHTML += 'Birthday deal: <a href="http://www.procope.co.nz/assets/Uploads/Procope-Loyalty-Joining-Form.pdf">Receive a free coffee on your birthday for Loyalty Club cardholders (signup required $5)</a>';
  1203. }
  1204. else if (site.includes('engineers.eft.plus')) {
  1205. var DisplayPopup = true;
  1206. contentHTML += 'Birthday deal: <a href="https://engineers.eft.plus/">Receive a free main meal ($35) on your birthday (free signup required)</a>';
  1207. }
  1208. else if (site.includes('hachihachi.co.nz')) {
  1209. var DisplayPopup = true;
  1210. contentHTML += 'Birthday deal: <a href="https://www.cheapies.nz/node/21249">Free Chicken Meal</a>';
  1211. }
  1212. else if (site.includes('oxfordgroup.co.nz')) {
  1213. var DisplayPopup = true;
  1214. contentHTML += 'Birthday deal: <a href="https://www.oxfordgroup.co.nz/the-oxford-club">Free $20 birthday voucher, valid for the month of your birthday (free signup required)</a>';
  1215. }
  1216. else if (site.includes('kaiserbrewgarden.co.nz')) {
  1217. var DisplayPopup = true;
  1218. contentHTML += 'Birthday deal: <a href="https://www.kaiserbrewgarden.co.nz/kaiser-club/">Free Pizza, valid Mon-Thur the month of your birthday (free signup required)</a>';
  1219. }
  1220. else if (site.includes('jollyoctopustattoo.com')) {
  1221. var DisplayPopup = true;
  1222. contentHTML += 'Birthday deal: <a href="https://jollyoctopustattoo.com/">$50 birthday voucher to existing customers</a>';
  1223. }
  1224. else if (site.includes('dilusso.co.nz')) {
  1225. var DisplayPopup = true;
  1226. contentHTML += 'Birthday deal: <a href="http://www.dilusso.co.nz/loyalty-card">Free $20 voucher on your birthday for DiLusso Dignitary members</a>';
  1227. }
  1228. else if (site.includes('jesterhouse.co.nz')) {
  1229. var DisplayPopup = true;
  1230. contentHTML += 'Birthday deal: <a href="http://jesterhouse.co.nz/eat-for-free">Eat Free on your birthday for members of the VIP Birthday Club</a>';
  1231. }
  1232. else if (site.includes('fairweathers.co.nz')) {
  1233. var DisplayPopup = true;
  1234. contentHTML += 'Birthday deal: <a href="http://www.fairweathers.co.nz/bar/35-bar-and-events">Buy One Get One Free Main Meal, when dining with a paying guest for subscribers of FairWeather\'s newsletter</a>';
  1235. }
  1236. else if (site.includes('paroa.co.nz')) {
  1237. var DisplayPopup = true;
  1238. contentHTML += 'Birthday deal: <a href="http://www.paroa.co.nz/bars-in-greymouth/paroa-hotel-loyalty-club">Free Main Meal on your birthday, when accompanied by three paying adult guests for members of the Paroa Hotel Loyalty Club</a>';
  1239. }
  1240.  
  1241.  
  1242.  
  1243. if (site.includes('aliexpress.com') || site.includes('temu.com') || site.includes('amazon.com') || site.includes('ebay.com') || site.includes('pbtech.co.nz')) {
  1244. var DisplayPopup = true;
  1245. contentHTML += '<br><br> Check Cheapies or OzBargain extension for coupons <br><br> Remember to use Dosh for payment! <br><br> Referral: <a href="https://www.cheapies.nz/deals/aliexpress.com#refinfo15">https://www.cheapies.nz/deals/aliexpress.com#refinfo15</a>';
  1246. }
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252. // OLD
  1253.  
  1254. /*
  1255. if (DisplayPopup === true) {
  1256. function createPopup() {
  1257. var reminderDiv = document.createElement('div');
  1258. reminderDiv.id = 'yourPopupId';
  1259.  
  1260. var dragHandle = document.createElement('div');
  1261. dragHandle.style.height = '20px';
  1262. dragHandle.style.backgroundColor = '#ccc';
  1263. dragHandle.style.cursor = 'move';
  1264. dragHandle.innerHTML = 'Drag here';
  1265. dragHandle.style.textAlign = 'center';
  1266. reminderDiv.appendChild(dragHandle);
  1267.  
  1268. var toggleButton = document.createElement('button');
  1269. toggleButton.innerHTML = 'Show / Hide';
  1270. toggleButton.style.marginTop = '10px';
  1271. toggleButton.style.marginBottom = '10px';
  1272. reminderDiv.appendChild(toggleButton);
  1273.  
  1274. var contentDiv = document.createElement('div');
  1275. contentHTML += '<br><br> Long running deals: https://www.cheapies.nz/deals/longrunning <br><br>';
  1276. contentDiv.innerHTML = contentHTML;
  1277. reminderDiv.appendChild(contentDiv);
  1278.  
  1279. reminderDiv.style.position = 'fixed';
  1280. reminderDiv.style.padding = '10px 10px 0px 10px';
  1281. reminderDiv.style.backgroundColor = 'cyan';
  1282. reminderDiv.style.border = '2px solid black';
  1283. reminderDiv.style.zIndex = '10000';
  1284. reminderDiv.style.width = localStorage.getItem('popupWidth') || '290px';
  1285. reminderDiv.style.maxWidth = '500px';
  1286. reminderDiv.style.wordWrap = 'break-word';
  1287. reminderDiv.style.resize = 'both';
  1288. reminderDiv.style.overflow = 'auto';
  1289. reminderDiv.style.top = localStorage.getItem('popupTop') || '50%';
  1290. reminderDiv.style.left = localStorage.getItem('popupLeft') || '10px';
  1291.  
  1292. var isContentVisible = true;
  1293.  
  1294. toggleButton.addEventListener('click', function () {
  1295. // Toggle the value of isContentVisible (from true to false or vice versa)
  1296. isContentVisible = !isContentVisible;
  1297.  
  1298. if (!isContentVisible) {
  1299. // If isContentVisible is now false, hide the contentDiv
  1300. contentDiv.style.display = 'none';
  1301.  
  1302. // Set the height of reminderDiv to 'auto' to shrink the popup
  1303. reminderDiv.style.height = 'auto';
  1304.  
  1305. // Save the width before shrinking
  1306. localStorage.setItem('popupOriginalWidth', reminderDiv.style.width);
  1307.  
  1308. // Set the width of dragHandle to match Show/Hide button
  1309. dragHandle.style.width = toggleButton.offsetWidth + 'px';
  1310.  
  1311. // Shrink the width of reminderDiv
  1312. reminderDiv.style.width = dragHandle.offsetWidth + 'px';
  1313.  
  1314. } else {
  1315. // If isContentVisible is now true, show the contentDiv
  1316. contentDiv.style.display = 'block';
  1317.  
  1318. // Set the height of reminderDiv to 'auto' to expand the popup
  1319. reminderDiv.style.height = 'auto';
  1320.  
  1321. // Restore the width to the saved original width
  1322. reminderDiv.style.width = localStorage.getItem('popupOriginalWidth');
  1323.  
  1324. // Restore the width of dragHandle
  1325. dragHandle.style.width = '';
  1326. }
  1327. });
  1328.  
  1329. dragHandle.addEventListener('mousedown', function (e) {
  1330. var offsetX = e.clientX - parseInt(window.getComputedStyle(reminderDiv).left);
  1331. var offsetY = e.clientY - parseInt(window.getComputedStyle(reminderDiv).top);
  1332.  
  1333. function mouseMoveHandler(e) {
  1334. reminderDiv.style.top = (e.clientY - offsetY) + 'px';
  1335. reminderDiv.style.left = (e.clientX - offsetX) + 'px';
  1336. }
  1337.  
  1338. function mouseUpHandler() {
  1339. window.removeEventListener('mousemove', mouseMoveHandler);
  1340. window.removeEventListener('mouseup', mouseUpHandler);
  1341. localStorage.setItem('popupTop', reminderDiv.style.top);
  1342. localStorage.setItem('popupLeft', reminderDiv.style.left);
  1343. }
  1344.  
  1345. window.addEventListener('mousemove', mouseMoveHandler);
  1346. window.addEventListener('mouseup', mouseUpHandler);
  1347. });
  1348.  
  1349. document.body.appendChild(reminderDiv);
  1350.  
  1351. // Add event listeners for manual resizing
  1352. reminderDiv.addEventListener('mousemove', function () {
  1353. localStorage.setItem('popupWidth', reminderDiv.style.width);
  1354. localStorage.setItem('popupHeight', reminderDiv.style.height);
  1355. });
  1356. }
  1357.  
  1358. function displayPopup() {
  1359. var existingPopup = document.getElementById('yourPopupId');
  1360. if (!existingPopup) {
  1361. createPopup();
  1362. } else {
  1363. existingPopup.style.top = localStorage.getItem('popupTop') || '50%';
  1364. existingPopup.style.left = localStorage.getItem('popupLeft') || '10px';
  1365. existingPopup.style.width = localStorage.getItem('popupWidth') || '290px';
  1366. existingPopup.style.height = localStorage.getItem('popupHeight') || 'auto';
  1367. }
  1368. }
  1369.  
  1370. if (!localStorage.getItem('popupCreated')) {
  1371. createPopup();
  1372. localStorage.setItem('popupCreated', 'true');
  1373. } else {
  1374. displayPopup();
  1375. }
  1376. }
  1377. */
  1378.  
  1379.  
  1380.  
  1381. // Version 2
  1382.  
  1383. if (DisplayPopup === true) {
  1384. function createPopup() {
  1385. var reminderDiv = document.createElement('div');
  1386. reminderDiv.id = 'yourPopupId';
  1387.  
  1388. var dragHandle = document.createElement('div');
  1389. dragHandle.style.height = '20px';
  1390. dragHandle.style.backgroundColor = '#ccc';
  1391. dragHandle.style.cursor = 'move';
  1392. dragHandle.innerHTML = 'Drag here';
  1393. dragHandle.style.textAlign = 'center';
  1394. reminderDiv.appendChild(dragHandle);
  1395.  
  1396. var toggleButton = document.createElement('button');
  1397. toggleButton.innerHTML = 'Show / Hide';
  1398. toggleButton.style.marginTop = '10px';
  1399. toggleButton.style.marginBottom = '10px';
  1400. reminderDiv.appendChild(toggleButton);
  1401.  
  1402. var contentDiv = document.createElement('div');
  1403. //contentHTML += '<br><br> Long running deals: https://www.cheapies.nz/deals/longrunning <br><br> Forum: https://www.cheapies.nz/forum <br><br>';
  1404. contentHTML += '<br><br> Long running deals: <a href="https://www.cheapies.nz/deals/longrunning">https://www.cheapies.nz/deals/longrunning</a> <br><br> Forum: <a href="https://www.cheapies.nz/forum">https://www.cheapies.nz/forum</a> <br><br>';
  1405.  
  1406. contentDiv.innerHTML = contentHTML;
  1407. reminderDiv.appendChild(contentDiv);
  1408.  
  1409. reminderDiv.style.position = 'fixed';
  1410. reminderDiv.style.padding = '10px 10px 0px 10px';
  1411. reminderDiv.style.backgroundColor = 'cyan';
  1412. reminderDiv.style.border = '2px solid black';
  1413. reminderDiv.style.zIndex = '10000';
  1414. reminderDiv.style.width = localStorage.getItem('popupWidth_' + window.location.origin) || '290px';
  1415. reminderDiv.style.maxWidth = '500px';
  1416. reminderDiv.style.wordWrap = 'break-word';
  1417. reminderDiv.style.resize = 'both';
  1418. reminderDiv.style.overflow = 'auto';
  1419. reminderDiv.style.top = localStorage.getItem('popupTop_' + window.location.origin) || '50%';
  1420. reminderDiv.style.left = localStorage.getItem('popupLeft_' + window.location.origin) || '10px';
  1421.  
  1422. // Check if isContentVisible is not found in local storage, default to true
  1423. var isContentVisible = localStorage.getItem('isContentVisible_' + window.location.origin);
  1424. if (isContentVisible === null) {
  1425. isContentVisible = true;
  1426. } else {
  1427. isContentVisible = isContentVisible === 'true';
  1428. }
  1429.  
  1430. if (!isContentVisible) {
  1431. contentDiv.style.display = 'none';
  1432. reminderDiv.style.height = 'auto';
  1433. localStorage.setItem('popupOriginalWidth_' + window.location.origin, reminderDiv.style.width);
  1434. dragHandle.style.width = toggleButton.offsetWidth + 'px';
  1435. reminderDiv.style.width = 'auto';
  1436. dragHandle.style.width = '';
  1437. }
  1438.  
  1439. toggleButton.addEventListener('click', function () {
  1440. isContentVisible = !isContentVisible;
  1441. localStorage.setItem('isContentVisible_' + window.location.origin, isContentVisible);
  1442.  
  1443. if (!isContentVisible) {
  1444. contentDiv.style.display = 'none';
  1445. reminderDiv.style.height = 'auto';
  1446. localStorage.setItem('popupOriginalWidth_' + window.location.origin, reminderDiv.style.width);
  1447. dragHandle.style.width = toggleButton.offsetWidth + 'px';
  1448. reminderDiv.style.width = 'auto';
  1449. } else {
  1450. contentDiv.style.display = 'block';
  1451. reminderDiv.style.height = 'auto';
  1452. reminderDiv.style.width = localStorage.getItem('popupOriginalWidth_' + window.location.origin);
  1453. dragHandle.style.width = '';
  1454. }
  1455. });
  1456.  
  1457. dragHandle.addEventListener('mousedown', function (e) {
  1458. var offsetX = e.clientX - parseInt(window.getComputedStyle(reminderDiv).left);
  1459. var offsetY = e.clientY - parseInt(window.getComputedStyle(reminderDiv).top);
  1460.  
  1461. function mouseMoveHandler(e) {
  1462. reminderDiv.style.top = (e.clientY - offsetY) + 'px';
  1463. reminderDiv.style.left = (e.clientX - offsetX) + 'px';
  1464. }
  1465.  
  1466. function mouseUpHandler() {
  1467. window.removeEventListener('mousemove', mouseMoveHandler);
  1468. window.removeEventListener('mouseup', mouseUpHandler);
  1469. localStorage.setItem('popupTop_' + window.location.origin, reminderDiv.style.top);
  1470. localStorage.setItem('popupLeft_' + window.location.origin, reminderDiv.style.left);
  1471. }
  1472.  
  1473. window.addEventListener('mousemove', mouseMoveHandler);
  1474. window.addEventListener('mouseup', mouseUpHandler);
  1475. });
  1476.  
  1477. document.body.appendChild(reminderDiv);
  1478.  
  1479. reminderDiv.addEventListener('mousemove', function () {
  1480. if (isContentVisible) {
  1481. localStorage.setItem('popupWidth_' + window.location.origin, reminderDiv.style.width);
  1482. localStorage.setItem('popupHeight_' + window.location.origin, reminderDiv.style.height);
  1483. }
  1484. });
  1485. }
  1486.  
  1487. function displayPopup() {
  1488. var existingPopup = document.getElementById('yourPopupId');
  1489. if (!existingPopup) {
  1490. createPopup();
  1491. } else {
  1492. var popupTop = localStorage.getItem('popupTop_' + window.location.origin) || '50%';
  1493. var popupLeft = localStorage.getItem('popupLeft_' + window.location.origin) || '10px';
  1494. var popupWidth = localStorage.getItem('popupWidth_' + window.location.origin) || '290px';
  1495. var popupHeight = localStorage.getItem('popupHeight_' + window.location.origin) || 'auto';
  1496.  
  1497. existingPopup.style.top = popupTop;
  1498. existingPopup.style.left = popupLeft;
  1499. existingPopup.style.width = popupWidth;
  1500. existingPopup.style.height = popupHeight;
  1501. }
  1502. }
  1503.  
  1504. if (!sessionStorage.getItem('popupCreated')) {
  1505. displayPopup();
  1506. sessionStorage.setItem('popupCreated', 'true');
  1507. }
  1508.  
  1509. window.addEventListener('beforeunload', function () {
  1510. sessionStorage.removeItem('popupCreated');
  1511. });
  1512. }
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement