mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-03 05:34:07 +02:00
Fix browser opening when clicking on list urls, and change == to ===
This commit is contained in:
parent
57484c8bf7
commit
039233c782
@ -22,7 +22,7 @@
|
|||||||
$("[data-action='settings-menu']").click(function(){
|
$("[data-action='settings-menu']").click(function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var menu = $(".js-dropdown-content").children("ul").first();
|
var menu = $(".js-dropdown-content").children("ul").first();
|
||||||
if (menu.length == 0)return;
|
if (menu.length === 0)return;
|
||||||
|
|
||||||
menu.children(".drp-h-divider").last().after('<li class="is-selectable" data-std><a href="#" data-action>'+$TD.brandName+'</a></li><li class="drp-h-divider"></li>');
|
menu.children(".drp-h-divider").last().after('<li class="is-selectable" data-std><a href="#" data-action>'+$TD.brandName+'</a></li><li class="drp-h-divider"></li>');
|
||||||
|
|
||||||
@ -83,7 +83,7 @@
|
|||||||
mid = mid.children(".js-column-scroller").first();
|
mid = mid.children(".js-column-scroller").first();
|
||||||
|
|
||||||
var container = mid.children(".js-chirp-container").first();
|
var container = mid.children(".js-chirp-container").first();
|
||||||
if (container.length == 0)return;
|
if (container.length === 0)return;
|
||||||
|
|
||||||
var scroller = container.parent();
|
var scroller = container.parent();
|
||||||
|
|
||||||
@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
Array.prototype.forEach.call(mutations,function(mutation){
|
Array.prototype.forEach.call(mutations,function(mutation){
|
||||||
Array.prototype.forEach.call(mutation.addedNodes,function(node){
|
Array.prototype.forEach.call(mutation.addedNodes,function(node){
|
||||||
if (node.tagName != "ARTICLE")return;
|
if (node.tagName !== "ARTICLE")return;
|
||||||
|
|
||||||
onNewTweet(column,node);
|
onNewTweet(column,node);
|
||||||
});
|
});
|
||||||
@ -213,8 +213,9 @@
|
|||||||
if (urlWait)return;
|
if (urlWait)return;
|
||||||
|
|
||||||
var me = $(this);
|
var me = $(this);
|
||||||
|
var rel = me.attr("rel");
|
||||||
|
|
||||||
if (!me.is(".link-complex") && !(me.attr("rel") == "mediaPreview" && me.closest("#open-modal").length == 0)){
|
if (!me.is(".link-complex") && !(rel === "mediaPreview" && me.closest("#open-modal").length === 0) && rel !== "list"){
|
||||||
$TD.openBrowser(me.attr("href"));
|
$TD.openBrowser(me.attr("href"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user