You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
details.requestHeaders[i].value=details.requestHeaders[i].value.replace(rvRegex,'rv:110.0');//twitter serves client-web-legacy if rv is less than 110, which breaks request signing
74
+
letversion=parseFloat(versionMatch[1]);
75
+
if(rv<latest||version<latest){//rv 110 is cutoff point between client-web-legacy and client-web, so we should just spoof browser and rv to latest
Copy file name to clipboardExpand all lines: scripts/twchallenge.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ window.addEventListener('message', e => {
63
63
solveCallbacks[id].reject('Solver errored during initialization');
64
64
deletesolveCallbacks[id];
65
65
}
66
-
alert(`There was an error in initializing security header generator:${data.error}. OldTwitter doesn't allow unsigned requests anymore for your account security.`);
66
+
alert(`There was an error in initializing security header generator:\n${data.error}\nUser Agent: ${navigator.userAgent}\nOldTwitter doesn't allow unsigned requests anymore for your account security.`);
67
67
console.error('Error initializing solver:');
68
68
console.error(data.error);
69
69
}elseif(data.action==='ready'){
@@ -163,9 +163,9 @@ async function initChallenge() {
163
163
console.error(`Error during challenge init:`);
164
164
console.error(e);
165
165
if(location.hostname==='twitter.com'){
166
-
alert(`There was an error in initializing security header generator: ${e}. OldTwitter doesn't allow unsigned requests anymore for your account security. Currently the main reason for this happening is social network tracker protection blocking the script. Try disabling such settings in your browser and extensions that do that and refresh the page. Also using OldTwitter from twitter.com domain is not supported.`);
166
+
alert(`There was an error in initializing security header generator: ${e}\nUser Agent: ${navigator.userAgent}\nOldTwitter doesn't allow unsigned requests anymore for your account security. Currently the main reason for this happening is social network tracker protection blocking the script. Try disabling such settings in your browser and extensions that do that and refresh the page. Also using OldTwitter from twitter.com domain is not supported.`);
167
167
}else{
168
-
alert(`There was an error in initializing security header generator: ${e}. OldTwitter doesn't allow unsigned requests anymore for your account security. Currently the main reason for this happening is social network tracker protection blocking the script. Try disabling such settings in your browser and extensions that do that and refresh the page.`);
168
+
alert(`There was an error in initializing security header generator: ${e}\nUser Agent: ${navigator.userAgent}\nOldTwitter doesn't allow unsigned requests anymore for your account security. Currently the main reason for this happening is social network tracker protection blocking the script. Try disabling such settings in your browser and extensions that do that and refresh the page.`);
0 commit comments