Skip to content

Instantly share code, notes, and snippets.

@alanbosco
Created May 29, 2023 18:54
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save alanbosco/1052f8a8ef00ae459246dbda9d0d0cd6 to your computer and use it in GitHub Desktop.
Save alanbosco/1052f8a8ef00ae459246dbda9d0d0cd6 to your computer and use it in GitHub Desktop.
// gspa plugin like SplitText3.min.js CustomEase3.min.js
// !!!! ALWAYS SUPPORT THE DEVELOPERS, GSAP IS THE BEST TOOL OUT THERE. !!!!
// THIS IS FOR EDUCATION PURPOSE ONLY!
// Gsap script check for your window.location.href to identify if you're on a allowed site list.
// these list are in a array for charcter code
// [103, 114, 101, 101, 110, 115, 111, 99, 107, 46, 99, 111, 109] === 'greensock.com'
// you can add your domain aswell in this array.
// Plugins are minified use https://beautifier.io/ or any other site to get a readble code.
// Search for window.location.href : ""
// Most porbably you can see in the next like there is an array with character codes
// eg:- t = [a, p(99, 111, 100, 101, 112, 101, 110, 46, 105, 111), ....
// you can add you site here
// currentSite = 'example.com'
// t = [a, currentSite, p(99, 111, 100, 101, 112, 101, 110, 46, 105, 111), ...
// function p converts character code to string. So you can just use string here ^
a = p(103, 114, 101, 101, 110, 115, 111, 99, 107, 46, 99, 111, 109),
currentSite = 'example.site',
// .
// .
// .
e = 0 === (u ? window.location.href : "").indexOf(p(102, 105, 108, 101, 58, 47, 47)) || -1 !== D.indexOf(p(108, 111, 99, 97, 108, 104, 111, 115, 116)) || h.test(D),
t = [a, currentSite, p(99, 111, 100, 101, 112, 101, 110, 46, 105, 111), p(99, 111, 100, 101, 112, 101, 110, 46, 112, 108, 117, 109, 98, 105, 110, 103), p(99, 111, 100, 101, 112, 101, 110, 46, 100, 101, 118)]
@noe-gif
Copy link

noe-gif commented Apr 25, 2024

Where do you need to put this script ?

@alanbosco
Copy link
Author

@noe-gif This is not a script you could run, this is just a method you could use to edit your gsap plugins js files. find these lines of code and add your site in this list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment