siavash119 / qtchan

4chan browser in qt5
GNU General Public License v3.0
101 stars 7 forks source link

qtchan is a 4chan browser written with qt5.\ I started developing it because browsers suck.\ There's still a lot to do.

Features

Build Instructions (Linux/BSD based)

needs qt5 with headers, qmake, and a compiler (like g++ or clang++)\ e.g. on Debian/Ubuntu: sudo apt install qt5 qt5-devel qt5-qmake make gcc\ For a clang build, change qmake ../ to qmake ../ -spec linux-clang

git clone https://github.com/siavash119/qtchan 
cd qtchan
mkdir build
cd build
qmake ../
make
./qtchan

Archlinux:

makepkg --install

or from AUR:

packer -S qtchan

a few keyboard commands and instructions

navigation

there are more shortcuts; look at the source for now for info.

keybinds other than 1-9 (vim #), ctrl+F1-F4 (save session slot), and shift+F1-F4 (load session slot) are configurable. Set them in your qtchan.ini file like this and restart qtchan

[keybinds]
hideMenu=F11
prevTab=ctrl+shift+tab
nextTab=ctrl+tab
firstTab=ctrl+1
prevParent=ctrl+2
nextParent=ctrl+3
lastTab=ctrl+4
closeTab=ctrl+w
undoCloseTab=ctrl+shift+t
closeTab2=delete
navBar=ctrl+l
autoUpdate=ctrl+u
autoExpand=ctrl+e
fileManager=ctrl+o
textSmaller=ctrl+-
textBigger=ctrl++
imagesSmaller=ctrl+9
imagesBigger=ctrl+0
saveSession=ctrl+s
saveSession2=F5
loadSession=F6
prevSession=ctrl+F5
nextSession=ctrl+F6
refreshTabs=ctrl+r
toggleSettings=ctrl+p
quit=ctrl+q
reloadFilters=F7
find=ctrl+f
closeChildTabs=ctrl+k
toggleNotifications=F9
hideNavBar=escape
showHelp=F1
focusTree=F3
focusTab=F4
showArchive=F8
refreshTab=r
reply=q
openSelected=o
toggleExpandTab=e
scrollUp=k
scrollDown=j
scrollTo=shift+g
clearVim=-
gallery=g
prevReply=h
nextReply=l

need to restart qtchan if changing to use 4chan pass or not. signals/slots still not finished for that.

Captcha

  1. in the post form, focus the bottom lineEdit. It will load the challenge image
  2. it's a grid following the numpad:
    • 7 8 9
    • 4 5 6
    • 1 2 3
  3. type in the numbers and hit enter (e.g. 034)
  4. if it says "Verified.", you're good to post.
    • Your code will expire in 2 minutes. If you want to load a new captcha, hit enter in the lineEdit or click the image.

Note: the numbers in this image follow a previous captcha number grid, the correct answer would be 893 in any order. qtchan captcha

Filters

Create a file ~/.config/qtchan/filters.conf

!key
regex (don't surround with or escape forward slashes; always case insensitive)
regex
regex$option:value,value;option:value
#comment
!

!sub
/yourbadgeneral/$boards:g,pol;op:only
##all generals
general$op:only
!

!name
##name users
^(?!Anonymous$)$
!

!filename
##fap
#^$$
##work
#^(?!$)$
!

F7 reloads and applies the filters.conf file

Using 4chan pass to post

Create a file ~/.config/qtchan/cookies.conf like below. Look at your browser cookies for values. Open settings with Ctrl+P and check Use 4chan pass.

pass_id:your_pass_id
pass_enabled:1

Extra flags for int

In ~/.config/qtchan/qtchan.ini add these lines. Don't put your country name:

[extraFlags]
enable=true
region=YourRegion||SubRegion||another

qtchan ss

TODO

MAJOR

MINOR