Skip to content

Commit

Permalink
Merge pull request #64 from gatecrasher777/2.5.4
Browse files Browse the repository at this point in the history
2.5.4
  • Loading branch information
gatecrasher777 authored Sep 29, 2024
2 parents f7126c4 + 52a7f4e commit 73cb50c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ class Player extends Model {
// extracts n parameter encoding function
extractNCode() {
const alphanum = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTVUWXYZ.$_0123456789';
let ffunc, nstart = 0, fname = '', clue = code.indexOf('enhanced_except');
clue < 0 && (clue = code.indexOf('String.prototype.split.call(a,"")'));
clue < 0 && (clue = code.indexOf('Array.prototype.join.call(b,"")'));
clue > 0 && (nstart = code.lastIndexOf('=function(a){', clue) - 1);
while (nstart && alphanum.includes(code.charAt(nstart))) {
fname = code.charAt(nstart) + fname;
let ffunc, nstart = 0, fname = '', clue = this.data.indexOf('enhanced_except');
clue < 0 && (clue = this.data.indexOf('String.prototype.split.call(a,"")'));
clue < 0 && (clue = this.data.indexOf('Array.prototype.join.call(b,"")'));
clue > 0 && (nstart = this.data.lastIndexOf('=function(a){', clue) - 1);
while (nstart && alphanum.includes(this.data.charAt(nstart))) {
fname = this.data.charAt(nstart) + fname;
nstart--;
}
ffunc = `${fname}=function(a)`;
Expand Down

0 comments on commit 73cb50c

Please sign in to comment.