-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgOptimize-picker.js
More file actions
15 lines (10 loc) · 1.06 KB
/
gOptimize-picker.js
File metadata and controls
15 lines (10 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//final
(function(p,i,c,k){i=document.cookie.match('(?:^|;)\\s*_gaexp=([^;]*)'),c=document.location.href,k=i?decodeURIComponent(i[1]).split('.')[4]:null,(i=!~c.indexOf(p[k])&&p[k])&&window.location.replace(c.replace(/special(-2017)?\//, i))})(['special/','special-2017/'])
//dev
(function(p,i,c,k,a){i=document.cookie.match('(?:^|;)\\s*_gaexp=([^;]*)'),c=document.location.href,k=i?decodeURIComponent(i[1]).split('.')[4]:null,
a=c.match(/#*contacts\/*/),a=a&&a[0],
(i=!~c.indexOf(p[k])&&p[k])&&window.location.replace(c.replace(/2017n|night\//, i).replace(a,'#contactscontacts/'.replace(a,'')))})(['night/','2017n/'])
var c = '/contacts/'; var a = c.match(/#*contacts\/*/);a=a&&a[0];c.replace(a,'#contactscontacts/'.replace(a,''))
(function(p,i,c,k,a){i=document.cookie.match('(?:^|;)\\s*_gaexp=([^;]*)'),c=document.location.href,k=i?decodeURIComponent(i[1]).split('.')[4]:null,
a=c.match(/#*contacts\/*/),a=a&&a[0],console.log(a),k=1,
(i=!~c.indexOf(p[k])&&p[k])&&console.log(c.replace(/2017n|night\//, i).replace(a,'#contactscontacts/'.replace(a,'')))})(['night/','2017n/'])