diff options
| author | yo momma <shutup@oops.wtf> | 2026-01-27 03:33:16 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-01-27 03:33:16 +0000 |
| commit | fc9a4ea22eb91757b95cbe1bf1708be17fc2337a (patch) | |
| tree | 76a0122149e3288ee21d7fb6d0410b1b7b8970a4 /static/resizetest/dump.fm_files | |
| parent | 25b74138d68ade87689e714f10e1f3116da5bbee (diff) | |
- Replace hardcoded dump.fm URLs with host/scheme config\n- Add optional passwordless login flow\n- Update templates/static assets to avoid blocked HTTP resources\n- Ignore local uploads/SQL dumps
Diffstat (limited to 'static/resizetest/dump.fm_files')
| -rwxr-xr-x | static/resizetest/dump.fm_files/dump.css | 18 | ||||
| -rwxr-xr-x | static/resizetest/dump.fm_files/pichat.js | 16 |
2 files changed, 17 insertions, 17 deletions
diff --git a/static/resizetest/dump.fm_files/dump.css b/static/resizetest/dump.fm_files/dump.css index 332680d..ae021fc 100755 --- a/static/resizetest/dump.fm_files/dump.css +++ b/static/resizetest/dump.fm_files/dump.css @@ -63,25 +63,25 @@ a.img_roll:link, .img_roll{ width:130px; height:46px; display:block; - background-image:url(http://dump.fm/static/img/dumppixel.png); + background-image:url(/static/img/dumppixel.png); } a.img_roll:hover{ width:130px; height:46px; display:block; - background-image:url(http://dump.fm/static/img/dumppixelhover.png); + background-image:url(/static/img/dumppixelhover.png); } a.img_rolldis:link, .img_rolldis{ width:130px; height:46px; display:inline-block; - background-image:url(http://dump.fm/static/img/dumppixel.png); + background-image:url(/static/img/dumppixel.png); } a.img_rolldis:hover{ width:130px; height:46px; display:inline-block; - background-image:url(http://dump.fm/static/img/dumppixelhover.png); + background-image:url(/static/img/dumppixelhover.png); } #userlist a{ @@ -106,7 +106,7 @@ width:190px; } #search-query .search_icon { -background:url("http://dump.fm/static/img/hourglass.png") no-repeat scroll center center transparent; +background:url("/static/img/hourglass.png") no-repeat scroll center center transparent; bottom:3px; cursor:pointer; left:6px; @@ -494,7 +494,7 @@ a.msg-image-zoom img.zoom-icon:hover { } .search_icon { - background:url("http://dump.fm/static/img/hourglass.png") no-repeat scroll center center transparent; + background:url("/static/img/hourglass.png") no-repeat scroll center center transparent; bottom:3px; cursor:pointer; left:6px; @@ -1941,7 +1941,7 @@ top:50px; div.apple_overlay.black { color:#fff; - background-image:url(http://dump.fm/static/img/bg.dither.gif); + background-image:url(/static/img/bg.dither.gif); width:90%; height:70%; margin: 0 auto 0 auto; @@ -1981,7 +1981,7 @@ div.black h2 { } .apple_overlay .close { -background-image:url(http://dump.fm/static/img/thumbs/clode.png); +background-image:url(/static/img/thumbs/clode.png); border:2px solid #000; position:absolute; right:-11px; top:-8px; cursor:pointer; @@ -2054,7 +2054,7 @@ padding-bottom:45px; text-align: justify; text-justify: newspaper } #dis_welcome { - background-image: url(http://dump.fm/static/img/hearts.gif); + background-image: url(/static/img/hearts.gif); position: fixed; top: 0; left: 0; diff --git a/static/resizetest/dump.fm_files/pichat.js b/static/resizetest/dump.fm_files/pichat.js index 8a293ee..bdef69c 100755 --- a/static/resizetest/dump.fm_files/pichat.js +++ b/static/resizetest/dump.fm_files/pichat.js @@ -301,7 +301,7 @@ function buildMessageDiv(msg, isLoading) { var displayStyle = (TextEnabled || LastMsgContainsImage) ? '' : ' style="display: none"'; return '<div class="msgDiv dump ' + loadingClass + containsImageClass + '" ' + msgId + displayStyle + '>' - + '<span class="nick"><b><a href="http://dump.fm/' + nick + ' ">' + nick + '</a></b>' + + '<span class="nick"><b><a href="/' + nick + ' ">' + nick + '</a></b>' + ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> ' + '</span>' + '<span class="content">' + builtContent + '</span>' @@ -311,7 +311,7 @@ function buildMessageDiv(msg, isLoading) { function buildUserDiv(user) { if (user.avatar) { return '<div class="username">' - + '<a href="http://dump.fm/' + escapeHtml(user.nick) + '" target="_blank">' + + '<a href="/' + escapeHtml(user.nick) + '" target="_blank">' + '<img src="' + user.avatar + '" width="50" height="50">' + escapeHtml(user.nick) + '</a></div>'; } else { @@ -327,7 +327,7 @@ function buildUserDiv(user) { function buildFav(f) { var h = '<div class="fav-note">' + '<img src="/static/img/thumbs/chatheartover.gif">' - + '<a href="http://dump.fm/' + f.from + '">' + f.from + '</a>' + + '<a href="/' + f.from + '">' + f.from + '</a>' + ' <span>just faved you!</span>' + '</div>'; return $(h); @@ -363,7 +363,7 @@ function updateFavs(fs) { function buildGrowlDataAndPopDatShit(msg) { var nick = escapeHtml(msg.nick); - nick = '<a href="http://dump.fm/' + nick + ' " style="color:pink">' + nick + '</a>:' + nick = '<a href="/' + nick + ' " style="color:pink">' + nick + '</a>:' var msg = buildMsgContent(msg.content) growl(nick, msg) } @@ -531,7 +531,7 @@ function refresh() { var onError = function(resp, textStatus, errorThrown) { var msg = $.trim(resp.responseText); if (msg == "UNKNOWN_ROOM") - location.href = "http://dump.fm"; + location.href = "/"; if (IsAdmin && window.console) { console.error(resp, textStatus, errorThrown); } @@ -1142,7 +1142,7 @@ function getMessageInfo(e){ var message = $(e).parents(".dump") var id = message.attr("id").substr(8) // cut "message-001" to "001" var nick = message.attr("nick") - var link = "http://dump.fm/p/" + nick + "/" + id + var link = "/p/" + nick + "/" + id var content = message.find(".linkify") if (!content.length) content = message.find(".content") var rawContent = content.html() @@ -1159,7 +1159,7 @@ Share = { }, "facebook": function(button){ var message = getMessageInfo(button) - var url = "http://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via + var url = "https://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via Share.openLink(url) }, "tumblr": function(button){ @@ -1340,7 +1340,7 @@ function initChatMsgs() { var zoomlink = $('<a>') .attr({'href': img.attr('src') }) .addClass('msg-image-zoom') - .append($('<img>').attr('src', 'http://dump.fm/static/img/zoom.gif') + .append($('<img>').attr('src', '/static/img/zoom.gif') .addClass('zoom-icon')) .click(function() { window.open(img.attr('src')); return false; }); $(this).append(zoomlink); |
