forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

1545 Commits (ef2bda6920d325d7ba1e2bfb55b1bd2160497d79)

Author SHA1 Message Date
Aevann 48450b70d4 highlight /h/countryclub and /h/masterbaiters too 2023-02-07 03:42:56 +02:00
Aevann 56ed10f9fe remove testing shit 2023-02-07 03:23:17 +02:00
Aevann 711368baa5 same as last commit 2023-02-07 03:21:47 +02:00
Aevann 884f0a6f55 test smth on devrama 2023-02-07 03:17:22 +02:00
Aevann 13dafeb8a2 improve chat 2023-02-07 03:06:07 +02:00
SneedBot b7ef5c4463 sneed 2023-02-06 12:00:12 +00:00
Aevann a9ce706ff6 minor css fix 2023-02-06 08:05:37 +02:00
Aevann 16cc1721e8 fix rules on win98 theme 2023-02-06 07:59:33 +02:00
Aevann b600303a0b Merge branch 'master' of https://fsdfsd.net/rDrama/rDrama 2023-02-06 07:31:09 +02:00
Aevann 2421effcd3 fix body top padding 2023-02-06 06:26:16 +02:00
SneedBot 3b9393dc68 sneed 2023-02-06 04:00:11 +00:00
mummified-corroding-granny 113a1b4959 small lil tisms: table column sort disabling, remove ugly https:// string from rules (#112)
* about the rdrama_rules, when I changed from http:// to https:// the other day, in some browsers it now displays the protocol tag which is ugly and inconsistent. Not sure why on some browsers it did not display "http://" before
* about the sorting: I will disable sorting on more table columns later on. This is all I can do right now

Reviewed-on: rDrama/rDrama#112
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-06 02:07:39 +00:00
mummified-corroding-granny 786ba6aa56 moved toggleelement to register_new_elements() (#111)
We currently cannot see (toggle the dropdown/button) reports that are hidden behind the "show more" (comments) button. This PR fixes that.

Example of what is happening without this PR:
1. open megathread. The thread is long includes hundreds of comments implying need to click "show more" (comments) button
2. without clicking any "show more" (comments) button, click the flaggers button on one of the first comments
3. flaggers are presented as expected
4. click the "show more" (comments) button at the end
5. click the flaggers button on one of the comments that was hidden behind the "show more" (comments) button
6. the button does nothing and has no event listenner associated

With this PR:
1. all flaggers buttons work regardless if hidden behind "Show More" (comments) or not. Tested up to two "Show More" (comments) buttons

I did the PR this way because the view_more button calls register_new_elements() and not bottom.js as a whole

There are other things using data-toggleelement like the undelete button on comments and the Preview button on /submit. Both of those still work as expected

Reviewed-on: rDrama/rDrama#111
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-06 02:07:18 +00:00
SneedBot b2b48efd24 sneed 2023-02-05 08:00:10 +00:00
SneedBot 2e734f7a06 sneed 2023-02-03 08:00:09 +00:00
SneedBot e781bfc203 sneed 2023-02-03 04:00:08 +00:00
Aevann 3286a54de8 minor fix 2023-02-03 05:15:30 +02:00
Aevann 1245298954 increase header--icon size 2023-02-03 05:10:20 +02:00
Aevann e1a0e6a03e make images expandable in markdown preview 2023-02-03 05:04:23 +02:00
Aevann 2ce7829238 add 2 NY banners 2023-02-03 01:26:42 +02:00
Aevann 6c24c3cfe9 remove types from emoji_modal.js 2023-02-02 22:07:28 +02:00
Aevann 8133b219a4 refactor popovers 2023-02-02 22:07:14 +02:00
Aevann 24ba5a6663 remove duplicate shit in core.js 2023-02-02 19:15:25 +02:00
mummified-corroding-granny b0797c4493 fix-small-tisms that I had piled up in my todo (#109)
fix-small-tisms that I had piled up in my todo

Reviewed-on: rDrama/rDrama#109
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-02 16:54:52 +00:00
Aevann 9135a1a241 fix spoilers on some themes 2023-02-02 06:03:26 +02:00
Aevann 20067bb2b2 remove #modal shit 2023-02-02 01:31:52 +02:00
Aevann 29b5a16ad5 enable new year banners 2023-02-01 23:38:40 +02:00
SneedBot a4c9eae0bd sneed 2023-02-01 17:02:19 +00:00
Aevann b8534e3586 Merge branches 'master' and 'master' of https://fsdfsd.net/rDrama/rDrama 2023-02-01 17:44:43 +02:00
Aevann 2cd909b645 fix roulette 2023-02-01 17:30:42 +02:00
mummified-corroding-granny 3a3e1d8d74 add javascript and css for non-click-sortable table headers th (#107)
I noticed there are some over-interactive tables in general on rdrama. Particularly, multiple columns in the shop tables (awards and hats), which allow you to sort by buttons, icons, … The one page for user profile views also comes to mind, because it uses relative time since last visit, is paged server-side and browsers do not know how to sort that type of data anyway.

Also I noticed there are some tables that have disabled sorting by using <td> instead of <th> for the headers as is the case of the following pages:
* @uid/followed
* @uid/following

All of these situations are accounted for but need to be changed later in a different PR, because I can't right now.

For example, the "Buy" column of the shop can be changed to the following to disable sorting:

`<th class="disable-sort-click">Buy</th>`

Reviewed-on: rDrama/rDrama#107
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-01 14:10:10 +00:00
SneedBot 6bce928314 sneed 2023-01-31 04:00:10 +00:00
Aevann fad8d35992 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3501310#context 2023-01-29 17:08:03 +02:00
SneedBot c2dcb6d25f sneed 2023-01-29 12:00:12 +00:00
Aevann 7cf9432455 update rdrama headericon 2023-01-29 11:36:29 +02:00
Aevann ee66071ce1 fix chat msg deletion 2023-01-29 11:27:47 +02:00
Aevann 70347cd609 use addEventListener instead of on 2023-01-29 11:19:04 +02:00
SneedBot 2aaae46554 sneed 2023-01-29 04:00:09 +00:00
Aevann d272a467bc move bottom.js to core.js 2023-01-28 17:47:20 +02:00
Aevann 18ecf0a803 use only addeventlistener in bottom.js 2023-01-28 17:17:04 +02:00
Aevann ba909c1f10 fix console error 2023-01-28 16:53:05 +02:00
Aevann 441ca8a43f fix youtube embeds in chat 2023-01-28 16:46:49 +02:00
Aevann 010f424756 use addEventListener instead of onclick 2023-01-28 16:27:52 +02:00
Aevann ba5bfc2462 focus textarea when clicking on speed emoji option 2023-01-28 13:36:42 +02:00
Aevann abb702506f dont use var 2023-01-28 13:33:59 +02:00
Aevann 7beadcee71 move snow.js to a vendor folder 2023-01-28 13:33:51 +02:00
Aevann 05de367b22 fix missing marsey in https://stupidpol.site/post/35986/i-love-jinx-i-want-her/1164544#context 2023-01-28 12:47:08 +02:00
Aevann 51f6c8bb0a aethetic consistency 2023-01-28 12:40:03 +02:00
Aevann a8a1af6bea dont use implicit addEventListener 2023-01-28 12:39:44 +02:00
Aevann a9f169d3be minimize document-wide eventlisteners 2023-01-28 12:38:14 +02:00
Aevann 2006040375 make lite-youtube pausing also work when the button is clicked 2023-01-28 12:38:06 +02:00
Aevann 8b859cc610 register_new_elements consistency 2023-01-28 12:37:26 +02:00
Aevann 5995c6094a make all entries register_new_elements consistent 2023-01-28 11:56:32 +02:00
Aevann 3d7a549139 add some spaces for readability 2023-01-28 11:55:55 +02:00
Aevann e58b716dde use document instead of window event listener 2023-01-28 11:40:35 +02:00
Aevann 8eb0eb1938 fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3494238#context 2023-01-28 10:31:51 +02:00
chiobu 0ab45953b7 Cleaned up marseyjam (#101)
Reviewed-on: rDrama/rDrama#101
Co-authored-by: chiobu <chiobu@noreply.fsdfsd.net>
Co-committed-by: chiobu <chiobu@noreply.fsdfsd.net>
2023-01-28 08:02:45 +00:00
Aevann 599fb42080 add more margin between users 2023-01-27 20:23:18 +02:00
Aevann 159773cf73 show namecolor in online listing 2023-01-27 20:15:38 +02:00
Aevann 1e30acc5a8 make all images have loading="lazy" 2023-01-27 19:55:25 +02:00
Aevann 4a795d924f show profile pictures in chat online list 2023-01-27 19:52:47 +02:00
Aevann 3c61799977 fix dynamically created popovers 2023-01-27 18:36:11 +02:00
Aevann 1d6209e5bc fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3419331#context 2023-01-27 15:06:37 +02:00
Aevann c45cd0fde8 make a UI for /admin/dm_images 2023-01-27 14:24:39 +02:00
Aevann 303db4e6db change chudrama color on focus 2023-01-27 10:15:02 +02:00
Aevann e7eb024b4f dont show chudrama as red in tables 2023-01-27 10:14:49 +02:00
mummified-corroding-granny ea47902127 reduce scroll chaining on scrollable modals (#100)
Small lil PR to reduce/minimize overscroll (aka scroll chaining) when scrolling to the end of scrollable modals. Also relevant to mobile

Primary targets:
- GIFs scrollable tabs body
- EMOJI scrollable tabs body
- AWARDS scrollable tabs body

Should (TM) apply to other scrollable modals if the same HTML structure is used

Very important notes (TM):
* this does not apply to non-scrollable modals (e.g. delete and report)
* this only applies to the body of the modal where scrollable content is usually located (as per selector). Example of when it does not apply:
  * if we try to scroll near the search bar (e.g. on GIFs modal), we will still scroll the background
  * if we make the modal non-scrollable (e.g. limited search in emoji or its tabs), there is no overscroll protection

Why I chose this implementation:
* I have implemented this recently when all browsers started supporting it in the last months of 2022
* we cannot just disable the main body/html element scrollbar because it is likely to create headache-inducing content redraw situations
* minimalistic and it is a relatively modern way to do it
* about 300% better than some client-side javascript spaghetteh to avoid content redraws
* methodical alternative is to reimplement site-wide modals/scrolling (LMAO)
* I did not apply it to .modal-body because it does not work when we scroll in the empty area on the sides of the scrollable area (which I always do).

Reviewed-on: rDrama/rDrama#100
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-01-27 06:08:29 +00:00
SneedBot 89eb3f6c66 sneed 2023-01-27 00:00:16 +00:00
Aevann 07a668e75b add chud award image 2023-01-26 13:35:28 +02:00
SneedBot 4db872f73c sneed 2023-01-25 20:00:12 +00:00
Aevann 8bb7dd8c2b fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3477994#context 2023-01-25 17:52:31 +02:00
geese_suck 4afa57a9ba
fix classic theme 2023-01-25 07:25:37 -08:00
Aevann 3555e23f76 fix missing modlog kind for DM images 2023-01-25 13:35:46 +02:00
SneedBot 369353570f sneed 2023-01-25 08:00:11 +00:00
Aevann 06e3573a05 make chat pfps clickable 2023-01-25 05:30:08 +02:00
mummified-corroding-granny e7a786b7e9 remove z-index from dropdowns in search page (#96)
Kindly,

This fixes issue I created rDrama/rDrama#60 . Note that both z-indexes had to be removed because when I kept either of them, there was still z-fighting issues.

Considering that .dropdown-actions is used elsewhere, I tested the changes also on these pages and it still (TM) works on my machine (TM).

./files/templates/home_comments.html <----- Didn't test on /comments because disabled but it is same as search.html AFAIK
./files/templates/home.html
./files/templates/log.html
./files/templates/search.html
./files/templates/submission.html
./files/templates/userpage/header.html

Reviewed-on: rDrama/rDrama#96
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-01-25 02:25:16 +00:00
SneedBot c3f3e8f5bc sneed 2023-01-24 16:00:11 +00:00
Aevann 3217a1146a fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3464917#context 2023-01-24 12:47:31 +02:00
Aevann e68a1540c5 fix js error 2023-01-24 12:40:25 +02:00
Aevann 7eec8af383 add the upload image button for mesages in profiles to mobile 2023-01-24 12:19:20 +02:00
Aevann 7e47c0b9cc fix /log_out 2023-01-24 12:02:08 +02:00
Aevann c1b1ccedff chat improvements 2023-01-24 07:28:56 +02:00
SneedBot 6497f31060 sneed 2023-01-24 04:00:12 +00:00
chiobu c02c8312fa Upload Marsey Font for h/marsey (#92)
Linking the font off-site doesn't work anymore as it violates the following Content Security Policy directive: "font-src 'self'"

Reviewed-on: rDrama/rDrama#92
Co-authored-by: chiobu <chiobu@noreply.fsdfsd.net>
Co-committed-by: chiobu <chiobu@noreply.fsdfsd.net>
2023-01-24 03:55:52 +00:00
Aevann 47dc6da582 allow pasting images in initial modmail and DMs 2023-01-23 14:00:04 +02:00
Aevann dd8e3255a0 allow pasting images in DM replies 2023-01-23 13:04:07 +02:00
Aevann 8396126606 add dm images 2023-01-23 11:58:38 +02:00
Aevann d9553d2636 chat anti-spam 2023-01-23 08:04:02 +02:00
Aevann d2cbf72803 decreases buttons top margin 2023-01-23 03:15:46 +02:00
Aevann fadc81246d increase filename in asset submission forms 2023-01-23 03:03:39 +02:00
Aevann b1131fc64b more scrolling 2023-01-23 01:17:59 +02:00
SneedBot 45c2e42da0 sneed 2023-01-22 16:00:10 +00:00
Aevann bc99e8780a adjust padding 2023-01-22 11:13:37 +02:00
Aevann 37726b445a adjust chat margins 2023-01-22 11:09:57 +02:00
Aevann b1dba34658 smaller chat messages 2023-01-22 10:36:14 +02:00
Aevann 543c117e2d rename marseydeadhorse 2023-01-22 10:07:30 +02:00
Aevann 7fbe2c82a4 margins 2023-01-22 09:25:20 +02:00
Aevann 8d74d69d76 chat improvements 2023-01-22 09:19:23 +02:00
Aevann 30ab36f595 add padding to highlighted messages 2023-01-22 09:15:58 +02:00
Aevann d5291a5e41 highlight using primary color 2023-01-22 09:13:44 +02:00