mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-09 05:34:05 +02:00
15 lines
527 B
JavaScript
15 lines
527 B
JavaScript
import { replaceFunction } from "../api/patch.js";
|
|
import { TD } from "../api/td.js";
|
|
import { ensurePropertyExists } from "../api/utils.js";
|
|
|
|
/**
|
|
* Skips the pre-login page so that users immediately see the login page.
|
|
*/
|
|
export default function() {
|
|
ensurePropertyExists(TD, "controller", "init");
|
|
|
|
replaceFunction(TD.controller.init, "showLogin", function() {
|
|
location.href = "https://twitter.com/login?hide_message=true&redirect_after_login=https%3A%2F%2Ftweetdeck.twitter.com%2F%3Fvia_twitter_login%3Dtrue";
|
|
});
|
|
};
|