mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-09-14 01:32:10 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
9a6394d079
|
|||
88a55c8795
|
|||
d406866a02
|
|||
c2094bd2c0
|
@@ -6,6 +6,6 @@ using TweetDuck;
|
||||
|
||||
namespace TweetDuck {
|
||||
internal static class Version {
|
||||
public const string Tag = "1.25.2";
|
||||
public const string Tag = "1.25.3";
|
||||
}
|
||||
}
|
||||
|
@@ -67,6 +67,7 @@ import setup_tweet_context_menu from "./tweetdeck/setup_tweet_context_menu.js";
|
||||
import setup_tweetduck_account_bamboozle from "./tweetdeck/setup_tweetduck_account_bamboozle.js";
|
||||
import setup_video_player from "./tweetdeck/setup_video_player.js";
|
||||
import skip_pre_login_page from "./tweetdeck/skip_pre_login_page.js";
|
||||
import tweetdeck_preview_warning from "./tweetdeck/tweetdeck_preview_warning.js";
|
||||
import update from "./update/update.js";
|
||||
|
||||
const globalFunctions = [
|
||||
|
@@ -133,6 +133,14 @@ button {
|
||||
bottom: 192px !important;
|
||||
}
|
||||
|
||||
/***********************/
|
||||
/* Hide Preview button */
|
||||
/***********************/
|
||||
|
||||
.js-gryphon-beta-btn {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/*************************************/
|
||||
/* Tweak collapsed left panel layout */
|
||||
/*************************************/
|
||||
|
7
resources/Content/tweetdeck/tweetdeck_preview_warning.js
Normal file
7
resources/Content/tweetdeck/tweetdeck_preview_warning.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { $TD } from "../api/bridge.js";
|
||||
|
||||
export default function() {
|
||||
if (!("TD" in window)) {
|
||||
$TD.alert("warning", "Some TweetDuck features failed to load. This might happen if your Twitter account is enrolled into the TweetDeck Preview, which TweetDuck does not support. Try opting out of the TweetDeck Preview to restore TweetDuck's functionality.");
|
||||
}
|
||||
}
|
@@ -59,11 +59,15 @@ namespace TweetImpl.CefSharp.Component {
|
||||
}
|
||||
|
||||
private void OnFrameLoadStart(object? sender, FrameLoadStartEventArgs e) {
|
||||
base.OnFrameLoadStart(e.Url, e.Frame);
|
||||
if (!string.IsNullOrEmpty(e.Url)) {
|
||||
base.OnFrameLoadStart(e.Url, e.Frame);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnFrameLoadEnd(object? sender, FrameLoadEndEventArgs e) {
|
||||
base.OnFrameLoadEnd(e.Url, e.Frame);
|
||||
if (!string.IsNullOrEmpty(e.Url)) {
|
||||
base.OnFrameLoadEnd(e.Url, e.Frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user