mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-09 20:24:03 +00:00
Add ability to decrypt signature for vflxuxnEY/en_US/base.js
This commit is contained in:
@@ -163,3 +163,13 @@ def search(query, client)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def decrypt_signature(a)
|
||||
a = a.split("");
|
||||
a.delete_at(0..2)
|
||||
a = a.reverse
|
||||
c = a[0]
|
||||
a[0] = a[49 % a.size]
|
||||
a[49] = c
|
||||
return a.join("")
|
||||
end
|
Reference in New Issue
Block a user