[ overboard / cytube] [ leftypol / b / hobby / tech / edu / games / anime ] [ meta ] [ GET / ref]

/tech/ - Technology

"Technology reveals the active relation of man to nature"
Name
Email
Subject
Comment
Flag
File
Embed
Password (For file deletion.)


File: 1612129656526.gif (2.28 MB, 224x240, 1608608621350.gif)

 No.6724

This thread is only for feedback related to technical issues(bug reports, suggestions). Otherwise use >>>/leftypol/30356
Public Repo: https://github.com/towards-a-new-leftypol/leftypol_lainchan
If you have any grievances you can make a PR.

Mobile Support: https://github.com/PietroCarrara/Clover/releases/latest
Thread For Mobile Feedback: >>>/tech/6316

Onion Link: http://wz6bnwwtwckltvkvji6vvgmjrfspr3lstz66rusvtczhsgvwdcixgbyd.onion
Cytube: https://tv.leftypol.org/
Matrix: https://app.element.io/#/room/!RQxdjfGouwsFHwUzwL:matrix.org

We are currently working on improvements to the site, subject to the need of the tech team to sleep and go to their day jobs. If you need more immediate feedback please join the matrix room[s] and ask around. Feel free to leave comments, concerns, and suggestions about the tech side of the site here and we will try to get to it as soon as possible

Archived thread:
>>>/leftypol_archive/903
>>

 No.6727

File: 1612133034865.png (153.68 KB, 681x698, 2021-01-31.png)

Plug this hole.
>>

 No.6730

>>6727
There was an issue with the previous fix.
It had to be rolled back, unfortunately.
The issue has been fixed and a new version is in PR.
>>

 No.6731

>>6730
Okay thanks for letting me know it's progressing. I see the PR was made Jan 30, how long do you think it will take for the given admin(s) to enable the fix?
I'm so nagging about this because the warning and Google in general gives me anxiety.

p.s. nonmakina is based af
>>

 No.6733

>>6731
nonmakina = antonious
>>

 No.6744

File: 1612183832574.png (8.25 KB, 461x81, Untitled2.png)

To fix the bug of div#thread_stats not staying at the bottom of the reply list when auto-reload.js adds new replies, replace
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/js/thread-stats.js#L18
.after('<div id="thread_stats"></div>');

To put the "Unique IPs" on the right with the thread stats dump the span style from the element
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/templates/post_thread.html#L103
and add a rule to style.css:

[code]
#uniqueip > span {
display: block;
float: right;
margin: 0em 1em;
}
[/code]

The result is attached. Until a backend fix the following can be added to Options -> User JS:

[code]
(() => {
$('.clear').after($('#thread_stats'))
$('#uniqueip > span').attr('style', 'display: block; float: right; margin: 0em 1em;')
})()
[/code]

Options -> User JS quick reply spoiler fix >>>/leftypol_archive/1801
Options -> User JS catalog links in div.boardlist >>>/leftypol_archive/1803
>>

 No.6749

>>6748
lmao do it
>>

 No.6752

>404
It's not multi_image.js, it's multi-image.js.
>>

 No.6753

To fix individual post hiding in Options -> User JS:

[code]
(() => {
const pcid2tid = (board, pcid) => {
const n = document.querySelector ('[data-board="' + board + '"].thread > div#' + pcid)
return n == null ? null : n.parentNode.getAttribute ('id').replace ('thread_', '')
}
const merge = (have, posts) => {
let changed = false
for (p of posts) {
if (!have.some (e => e.post === p.post)) {
have.push (p)
changed = true
}
}
return changed
}
const fixids = () => {
let lspf = JSON.parse (localStorage.postFilter)
let changed = false
for (const [board, threads] of Object.entries (lspf.postFilter)) {
for (const [id, posts] of Object.entries (threads)) {
if (!id.startsWith ('pc')) { continue; }
const tid = pcid2tid (board, id)
if (tid == null) { continue; }
if (tid in threads) {
const have = threads [tid]
if (merge (have, posts)) { changed = true; }
} else {
threads [tid] = posts
changed = true
}
delete threads [id]
}
}
if (changed) {
lspf = JSON.stringify (lspf)
localStorage.postFilter = lspf
$(document).trigger('filter_page')
}
}
fixids ()
$(document).on('filter_page', fixids)

// post-filter.js
const removepost = function (boardId, threadId, postId) {
const list = JSON.parse (localStorage.postFilter)
const filter = list.postFilter

// thread already pruned
if (typeof filter[boardId] == 'undefined' || typeof filter[boardId][threadId] == 'undefined') return;

for (var i=0; i<filter[boardId][threadId].length; i++) {
if (filter[boardId][threadId][i].post == postId) {
filter[boardId][threadId].splice(i, 1);
break;
}
}

if ($.isEmptyObject(filter[boardId][threadId])) {
delete filter[boardId][threadId];
delete list.nextPurge[boardId][threadId];

if ($.isEmptyObject(filter[boardId])) {
delete filter[boardId];
delete list.nextPurge[boardId];
}
}

localStorage.postFilter = JSON.stringify (list)
}

Menu.onclick(function (e, $buffer) {
var ele = e.target.parentElement.parentElement;
var $ele = $(ele);
var threadId = $ele.parents('.thread').attr('id').replace('thread_', '');
var boardId = $ele.parent().data('board');
var postId = $ele.find('.post_no').not('[id]').text();

if ($ele.data('hidden')) {
$buffer.find('#filter-menu-unhide').click(function () {
removepost(boardId, threadId, postId)
$(document).trigger('filter_page')
})
}
})
})()
[/code]

The price is that the page is filtered twice, once with the wrong pcN IDs from post-filter.js, then with the correct thread IDs. The backend fix >>>/leftypol_archive/1822 doesn't have this double filtering.

Options -> User JS quick reply spoiler fix >>>/leftypol_archive/1801
Options -> User JS catalog links in div.boardlist >>>/leftypol_archive/1803
Options -> User JS thread stats and Unique IPs >>6744
>>

 No.6755

File: 1612309139952.txt (3.73 KB, userjs.txt)

A combined Options -> User JS with the four >>6753 fixes.
>>

 No.6756

What might it take to setup a leftypol PeerTube instance?
>>

 No.6763

>>6748
Due to their aggressive attitude, I request the first 'message' line be replaced with the second 'message' line. This will lower the change of them recognizing we're fucking with them personally.
>>

 No.6764

File: 1612359900997.png (49.98 KB, 877x363, 1.png)

EASILY SOLVABLE
1. please order "OPTIONS -> [THEME SELECTION]" in ABC order.

2. please create a fuggen suboption menu for it. Currently, it's picrel, which is autistic. (picrel)
At the very least add some kind of "select look" or sg like that, lmao.

3. Please fix "Gentoo" outlook the following way:
how come the fucking hovering over message box is fucking semi-transparent? I can't see shit, because of the transparency effect. PLZ figgs!
>>

 No.6765

>>6764
$('#style-select > select').css ({float: "none"}).before ('Select theme: ')
>>

 No.6769

>>6764
Sorted, labeled style selector:

[code]
(() => {
$('#style-select > select').before ('Select theme: ')
const selected = $('div.styles > a.selected').attr ('id').replace ('style-select-', '')
const stylesSelect = $('<select></select>').css ({float: "none"})

Array.from (document.querySelectorAll ('div.styles > a')).map (a => [a.innerText.replace (/^\[(.+)\]$/, '$1'), a.getAttribute ('id').replace ('style-select-', '')]).sort ((a, b) => {
const au = a [0].toUpperCase ()
const bu = b [0].toUpperCase ()
if (au < bu) { return -1; }
if (au > bu) { return 1; }
return 0
}).forEach (([name, id]) => {
const opt = $('<option></option>').html(name).val(id)
if (id === selected) { opt.attr('selected', true); }
stylesSelect.append(opt)
})

$('#style-select > select').detach ()
stylesSelect.change(function() {
$('#style-select-' + $(this).val()).click()
})
$('#style-select').append (stylesSelect)
})()
[/code]
>>

 No.6770

File: 1612411260062.txt (4.67 KB, userjs.txt)

A combined Options -> User JS with the five >>6753 >>6769 fixes.
>>

 No.6771

>>6748
Rewriting to make it unambiguous.

I literally cannot make it any easier, devs. It takes ten seconds to find the file and five seconds to copy and paste and save. It will save the janitors a ton of effort over the next few years.

Append this to instance-config.php (if you actually added the version above, remove it first!)
//———————————————

$config['filters'][] = array(
'condition' => array(
// basic filter for copypasta anorectal spam
'OP' => true,
'subject' => '/Address rampant anorectal violence/' //checks subject only
),
'action' => 'reject',
'message' => 'Due to increased spam from /pol/, you must copy and paste the opening line of The Communist Manifesto into the email field in order to post.<br><br>Email [email protected] if you are unable to post.'
);

$config['filters'][] = array(
'condition' => array(
// special filter for anorectal spam
'OP' => true,
'custom' => function($post) {
// known filename
if ($post['has_file'] && preg_match("/TAKE ACTION v/", $post['files'][0]['filename']) ||
(preg_match("/Blatantly injurious/", $post['body'])) ||
(preg_match("/ustice.*paste/", $post['body'])) ){
sleep(10); # add a delay :^)
return true; # perform the action below
}
return false;
}
),
'action' => 'reject',
'message' => 'Due to increased spam from /pol/, you must copy and paste the opening line of The Communist Manifesto into the email field in order to post.<br><br>Email [email protected] if you are unable to post.'
);
>>

 No.6772

>>6756
Not a dev but:
>a decision to do so
>an hour or so to properly set up (unless it fucks up)
>occasional maintenance if users can upload
I think it would be cool but why do you want it? What benefit would a leftypol instance have that other socialist instances don't offer?
>>

 No.6773

File: 1612444744938.txt (1.38 KB, style-select.js.txt)

Backend version of sorted, labeled style selector. >>6769
>>

 No.6796

In addition to image.html hardcoding the initial loop parameter to 1 >>>/leftypol_archive/1535 in the non-JS case, with JS on expand-video.js also loops by default ignoring the loop=[01] in the player.php href.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/js/expand-video.js#L16
> var loop = true;
> loopControls[1].style.fontWeight = "bold";

In the JS case with expand-video.js the initial state can be switched to [play once] on all videos in a page with:

$('p.fileinfo > span').filter ((k, e) => e.innerText === '[play once]').each ((k, e) => e.click ())

Unfortunately the loopControls spans aren't tagged with a class.
>>

 No.6798

File: 1612533367083.gif (772.08 KB, 228x170, ren-anxious.gif)

Is the leftypol_lainchan github maintainer okay? ~1 week has gone and they haven't updated for the fix to the Google leak.
>>6727
>>6730
https://github.com/towards-a-new-leftypol/leftypol_lainchan/pull/224
>>

 No.6800

>>

 No.6801

File: 1612543237167.png (149.58 KB, 560x367, Képernyőkép_2021-02-05_17-….png)

fix this already, pretty please
>>

 No.6803

File: 1612568307155.png (76.05 KB, 444x216, Untitled.png)

>>6801
Your browser seems to be the one with the subpar handling of word-wrap:break-word, Képernyőkép dude. >>>/leftypol/69820 The break-word will not be removed, it's there for a reason. However what you can do is inspect that post, go up to div.body, locate the "div.post div.body" rules, uncheck word-wrap:break-word and post the resulting layout.
>>

 No.6814

hiding individual posts doesn't seem to work, also, there's a lag when the hidden OPs show up in the catalog view like i can see it for half a second and then it disappears
>>

 No.6816

File: 1612617266992.txt (1.17 KB, videoloop-manual.txt)

Batch loop/once setting >>6796 for Options -> WebM, manual mode only for now.

Test thread: >>>/leftypol/32459
>>

 No.6818

File: 1612648574046.txt (1.96 KB, videoloop-auto.txt)

Batch loop/once setting >>6796 for Options -> WebM, with auto set on page load but not on new posts yet.

Test thread: >>>/leftypol/32459
>>

 No.6819

File: 1612658459705.txt (2.21 KB, videoloop.txt)

Batch loop/once setting >>6796 >>>/leftypol_archive/1521 in Options -> WebM, with auto set on page load and on new posts. Test thread: >>>/leftypol/32459 The issue with new posts was that expand-video.js uses a MutationObserver instead of reacting to the 'new_post' event like everyone else, and the observer runs after the 'new_post' trigger.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/js/expand-video.js#L230

Options -> User JS quick reply spoiler fix >>>/leftypol_archive/1801
Options -> User JS catalog links in div.boardlist >>>/leftypol_archive/1803
Options -> User JS thread stats and Unique IPs fix >>6744
Options -> User JS individual post hiding >>6753
Options -> User JS sorted, labeled style selector >>6769
>>

 No.6820

File: 1612660369892.txt (6.91 KB, userjs.txt)

A combined Options -> User JS with the six >>6819 fixes.
>>

 No.6824

File: 1612757728808.png (148.76 KB, 400x416, 318c1999bf9d690a6af5324fac….png)

>>6814
HELLLO. JANNIES. WHY CANT I HIDE INDIVIDUAL POSTS? ONLY THE OP OF THREADS WHICH IS GREAT BUT I WANT TO HIDE INDIVIDUAL POSTS IN THREADS
>>

 No.6835

Go to top/bottom navlinks in the top bar for Options -> User JS:

[code]
(() => {
const makea = (href, title, html) => {
const a = document.createElement ("a")
a.setAttribute ('href', href)
a.setAttribute ('title', title)
a.innerHTML = html
return a
}
if (document.querySelectorAll ('div.post.op').length == 1) {
const span = document.createElement ("span")
span.setAttribute ('id', 'topbottom-boardlist-navlinks')
span.setAttribute ('style', 'float:right;')
span.appendChild (makea ('#top', 'Go to top', '&#x25B2;'))
span.appendChild (makea ('#bottom', 'Go to bottom', '&#x25BC;'))
document.querySelector ('div.boardlist').appendChild (span)
}
})()
[/code]
>>

 No.6837

File: 1612796305571.txt (7.56 KB, userjs.txt)

A combined Options -> User JS with the seven >>6819 >>6835 fixes.
>>

 No.6841

File: 1612845805652.jpg (608.72 KB, 1500x1960, 3b6eea79dbce5c4d42443f9089….jpg)

1. Spoiler and deleted thumbs work in the catalog after >>>/leftypol_archive/1446 #124, but generic thumbs fail with e.g. src="/tech/thumb/file".
- spoiler: https://leftypol.org/meta/catalog.html spoiler OP test
- deleted: https://leftypol.org/meta/catalog.html Posting doesn't work for me
- generic: https://leftypol.org/tech/catalog.html Kickstarter workers unionize
The reason is that generateRecentPosts doesn't have any 'file' thumb handling:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/templates/themes/catalog/theme.php#L421
To add 'file' thumb handling, fix the fallback loop and add a missing 'else' branch:

[code]
if (isset($post['files']) && $post['files']) {
$files = json_decode($post['files']);

if (isset($files[0]) && $files[0]) {
$foundone = false;
foreach ($files as $file) {
if ($file->file != 'deleted') {
$post['file'] = $this->filepathForThumb($file->thumb, $file->file);
$foundone = true;
break;
}
}
if (!$foundone) {
$post['file'] = $this->filepathForThumb('deleted', null);
}
} else {
$post['file'] = $this->filepathForThumb('deleted', null);
}
} else {
$post['file'] = $this->filepathForThumb('deleted', null);
}
[/code]

Before or after generateRecentPosts:

[code]
private function filepathForThumb($thumb_or_special, $path_when_file) {
global $config;

if ($thumb_or_special === 'deleted') {
return $config['root'] . $config['image_deleted'];
} else if ($thumb_or_special === 'spoiler') {
return $config['root'] . $config['spoiler_image'];
} else if ($thumb_or_special === 'file') {
// see twig_extension_filter
$ext = mb_strtolower(mb_substr($path_when_file, mb_strrpos($path_when_file, '.') + 1));
$icons = $config['file_icons'];
// see templates/post/image.html
if (isset($icons[$ext])) {
return $config['root'] . sprintf($config['file_thumb'], $icons[$ext]);
} else {
return $config['root'] . sprintf($config['file_thumb'], $icons['default']);
}
} else {
return $config['uri_thumb'] . $thumb_or_special;
}
}
[/code]

2. There is what might be considered an UI bug, whereby the banner images cause a layout shift on nearly every page load. To fix it:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/inc/config.php#L937
> // Banner dimensions are also optional. As the banner loads after the rest of the page, everything may be
> // shifted down a few pixels when it does. Making the banner a fixed size will prevent this.
> // $config['banner_width'] = 300;
> // $config['banner_height'] = 100;
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/inc/instance-config.php#L105

3. The "sticky bug in the overboard catalog view" #229 is caused by this line:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/js/catalog.js#L11
> $('#Grid').mixItUp('sort', (value == "random" ? value : "sticky:desc " + value));
To fix it change it to:
> $('#Grid').mixItUp('sort', (((value "random") || (board_name "overboard")) ? value : "sticky:desc " + value));
and update the test if the overboard ever moves from /overboard/.

4. For future reference, should a similar issue come up again, the clone_wrapped_with_exist_check fix to #225
https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/43a6a67844e2b806945e67cd34c593009f54c460
is almost the same as the @ error suppression from
>>>/leftypol_archive/1839 + >>>/leftypol/63272
and treats the symptoms. The explanation of the cause and of a few other problems with mod_move is still available in the archive.

+ catalog post form for non-JS users >>>/leftypol_archive/1833
+ thread stats and unique IPs fix >>6744
+ sorted, labeled style selector >>6773
in issues but not resolved yet:
+ track order #63 webm error 2 >>>/leftypol_archive/1337 [in PR]
+ arabic characters #125 >>>/leftypol_archive/1517
+ original file name downloads for non-JS users #128 >>>/leftypol_archive/1499
+ txt thumbnails #129 >>>/leftypol_archive/1593 >>>/leftypol_archive/1673
+ reply limit nobump markers in index and thread view #147 >>>/leftypol_archive/1775
+ UTF-8 troubles #193 >>>/leftypol_archive/1738 >>>/leftypol_archive/1744
+ posts below the line and related #207 >>>/leftypol_archive/1759
+ quick reply spoiler #213 >>>/leftypol_archive/1801
+ individual post hiding #215 >>>/leftypol_archive/1822
+ catalog links in div.boardlist #216 >>>/leftypol_archive/1807
+ zombie threads in catalog #219 >>>/leftypol_archive/1691
+ post quote ending an orange quote #220 >>>/leftypol_archive/1722
+ ICC profile error #221 >>>/leftypol_archive/1787
>>

 No.6842

> $('#Grid').mixItUp('sort', (((value == "random") || (board_name == "overboard")) ? value : "sticky:desc " + value));
>>

 No.6843

Client-side fix for generic file thumbs >>6841 in catalog:

Array.from (document.getElementsByTagName ('img')).filter (e => e.hasAttribute ('src')).map (e => [e, e.getAttribute ('src').match (/^\/([^\/]+)\/thumb\/file$/)]).filter (([e, m]) => m != null).forEach (([e, m]) => e.setAttribute ('src', '/static/file.png'))
>>

 No.6847

I cannot post images via mobile. Is there any way around this?
>>

 No.6848

>>6847
Post a screenshot of the error message in >>4951
>>

 No.6849

Is the matrix server down for anyone else?
>>

 No.6851

when do we get 24 hour unique IP calculation?
>>

 No.6859

The "sticky bug in the overboard catalog view" #229 can also be fixed >>6842 manually on the client from the console after the page has finished loading.

[code]
(() => {
const sortby = (value) => { console.log (value); $('#Grid').mixItUp('sort', value); }
if ((active_page 'catalog') && (board_name "overboard")) {
$("#sort_by").change((e) => {
const v = e.target.value
if (v != "random") { sortby (v); }
})
if (localStorage && localStorage.catalog) {
const catalog = JSON.parse(localStorage.catalog)
const sb = catalog.sort_by
if (sb && (sb != "random")) { sortby (sb); }
}
}
})()
[/code]

This version won't work from Options -> User JS because both mixitup and catalog.js run after options/user-js.js.
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/b962f6a1283b33c6dc54c78cf4545adf92e21ce9/templates/themes/catalog/theme.php#L465
>>

 No.6860

[code]
(() => {
const sortby = (value) => { console.log (value); $('#Grid').mixItUp('sort', value); }
if ((active_page == 'catalog') && (board_name == "overboard")) {
$("#sort_by").change((e) => {
const v = e.target.value
if (v != "random") { sortby (v); }
})
if (localStorage && localStorage.catalog) {
const catalog = JSON.parse(localStorage.catalog)
const sb = catalog.sort_by
if (sb && (sb != "random")) { sortby (sb); }
}
}
})()
[/code]
>>

 No.6864

File: 1613008585135.txt (7.84 KB, userjs.txt)

A combined Options -> User JS with the eight >>6837 >>6843 fixes.
>>

 No.6867

>>6727
>>6730
Why can't towards-a-new-leftypol just log in and merge this?
>>

 No.6871

Options -> User JS fix for "sticky bug in the overboard catalog view" #229 using a mixEnd callback:
https://github.com/patrickkunka/mixitup/blob/v2/docs/events.md

[code]
(() => {
if ((active_page != 'catalog') || (board_name != "overboard")) { return; }
const state = { added: false }
$("#sort_by").change((e) => {
if (state.added) { return; }
state.added = true
$('#Grid').on('mixEnd', (ev, st) => {
as = st.activeSort
if ((typeof as === 'string') && as.startsWith ('sticky:desc ')) {
$('#Grid').mixItUp('sort', as.replace ('sticky:desc ', ""))
}
})
})
})()
[/code]

As with the individual post hiding #215 User JS fix >>6753 the price is double sorting, once with the sticky:desc forced in by catalog.js and again without. The backend fix >>6842 >>6841 doesn't have this double sorting.
>>

 No.6878

> https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/231
> https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/230
Github mangled some code portions of the pasted comment.

> https://github.com/towards-a-new-leftypol/leftypol_lainchan/issues/229

The bugfix line in >>6841 point 3 has heading markup interference which ate the two pairs of ==.
The same line with the two pairs of == present is in >>6842.
>>

 No.6880

File: 1613133932787.txt (8.29 KB, userjs.txt)

A combined Options -> User JS with the nine fixes.

① quick reply spoiler >>>/leftypol_archive/1801
② catalog links in div.boardlist >>>/leftypol_archive/1803
③ thread stats and Unique IPs >>6744
④ individual post hiding >>6753
⑤ sorted, labeled style selector >>6769
⑥ batch loop/once WebM setting >>6819
⑦ top/bottom navlinks in the top bar >>6835
⑧ generic file thumbs in catalog >>6843
⑨ sticky bug in the overboard catalog >>6871
>>

 No.6881

File: 1613160362672.png (15.02 KB, 460x143, from-speedy-activity-to-no….png)

Can mods confirm that they have heard from the maintainer (towards-a-new-leftypol) within the past two weeks to that they're ok?
Or have Biden's admin taken advantage of Trumps new anti-Antifa laws?
>>

 No.6884

File: 1613212562675.png (21.22 KB, 491x258, 2021،02،13-13:31:42.png)

Using easy privacy list blocks cloudflare scripts that is required to pass the browser verification process. If the cloudflare check loops forever for you this might be the problem.
>>

 No.6890

>>6881
Yes, they are alive and well.
Remember that anyone with an account can start a PR on github and also review PRs.
It also helps to attach patches (as .txt) so that they're easier to apply.
>>

 No.6892

File: 1613346967229.txt (537 B, issue-229-patch.txt)

>>6890
>It also helps to attach patches (as .txt) so that they're easier to apply.
>>

 No.6893

>>6890
Please tell them to log in and merge this which was pull-requested half a month ago:
https://github.com/towards-a-new-leftypol/leftypol_lainchan/pull/224
>>

 No.6914

Put a link to the catalog at the top, as well. Right next to go to bottom so it looks like:

[ Return / Go to bottom ] [ Catalog ] [ Home ]
>>

 No.6916

>>6914
Options -> User JS

[code]
(() => {
if (active_page !== "thread") { return; }
const added = ' [ <span class="threadlink"><a href="/' + board_name + '/catalog.html">Catalog</a></span> / <span class="threadlink"><a href="/">Home</a></span> ]'
document.querySelector ('div.threadlinks-noup').innerHTML += added
})()
[/code]
>>

 No.6917

>>6893
Why is this not progressing / getting ignored?
>>

 No.6923

>>6917
will checkin with tech team on this
>>

 No.6928

File: 1613819005764.txt (8.71 KB, userjs.txt)

A combined Options -> User JS with the ten >>6880 >>6916 fixes. Added tooltips to div.boardlist catalog links.
>>

 No.6933

To fix >>>/meta/3737
https://github.com/towards-a-new-leftypol/leftypol_lainchan/blob/6885c1977834ec93b594494a963df4ef6c588c71/inc/functions.php#L2199

$code = "<pre class='code lang-$code_lang'>".str_replace(array("\n","\t"), array("&#10;","&#9;"), htmlspecialchars($code, ENT_COMPAT, "UTF-8", false))."</pre>";

https://www.php.net/manual/en/function.htmlspecialchars.php
>>

 No.6934

Frontend workaround until the backend is fixed >>6933

Array.from (document.querySelectorAll ('pre.code')).forEach (e => { e.innerHTML = e.innerHTML.replace (/&amp;(amp|lt|gt);/g, '&$1;'); })
>>

 No.6952

what happened to youtube embed thumbnails?
>>

 No.6953

>>

 No.6974

File: 1614632455671.txt (8.87 KB, userjs.txt)

A combined Options -> User JS with the eleven >>6928 >>6934 fixes.

Unique IPs: 15

[Return][Go to top] [Catalog] | [Home][Post a Reply]
Delete Post [ ]
[ overboard / cytube] [ leftypol / b / hobby / tech / edu / games / anime ] [ meta ] [ GET / ref]