1813 Commits

Author SHA1 Message Date
Zixaphir
2ac2286ad5 Merge branch 'mayhem' into v3
Conflicts:
	CHANGELOG.md
	src/General/lib/$.coffee
	src/Images/Sauce.coffee
2014-01-28 01:11:06 -07:00
ParrotParrot
0aaa9af8cc changed to lowercase 2014-01-25 20:35:12 +01:00
ParrotParrot
dbd4de88b1 %NAME is indeed better 2014-01-25 20:31:27 +01:00
ParrotParrot
1118b38026 Not Necessary 2014-01-25 20:30:55 +01:00
ParrotParrot
5752e082ab added %FNAME case to data.Conf.sauces
I don't know what this actually does. Sounds stupid, but i only added a case because it's the only other place in the code that calls %URL and %TURL outside of HTML pages. Please review carefully.
2014-01-25 20:10:57 +01:00
ParrotParrot
7a2faf861e Added %FNAME case to link.replace switch 2014-01-25 20:10:40 +01:00
Zixaphir
51ba83538a Better $.rmAll
I verified an issue with the previous benchmark and even wrote a
more efficient method based off el.cloneNode(false);, which I would
use if cloneNode could inherit eventListeners

Speaking of events. there is still no interface for gather all
eventListeners on a given element (or its children). Apparently the
issue is that the w3c doesn't think there is a legitimate use case
for it. Heh.
2014-01-24 16:10:04 -07:00
Zixaphir
b62d82bed0 Mayhem made responseType JSON default for any URL containing .json. 2014-01-24 14:48:39 -07:00
Zixaphir
f133da454d Fix settings dialog, customize reset button 2014-01-22 12:24:30 -07:00
Zixaphir
b6749b91a5 Merge branch 'mayhem' into v3
Conflicts:
	CHANGELOG.md
	CONTRIBUTING.md
	css/style.css
	html/General/Settings-section-Main.html
	json/archives.json
	package.json
	src/Archive/Redirect.coffee
	src/General/Header.coffee
	src/General/Main.coffee
	src/General/Settings.coffee
	src/General/lib/$.coffee
	src/General/lib/thread.class
	src/Linkification/Linkify.coffee
	src/Miscellaneous/AnnouncementHiding.coffee
	src/Monitoring/ThreadStats.coffee
2014-01-22 12:10:34 -07:00
Mayhem
1eaf43e39a Fetch the image's HEAD status to see if it's still available or not.
Chrome bypasses the lack of CORS because we've allowed `i.4cdn.org` in the manifest.
2014-01-22 16:52:46 +01:00
Mayhem
c7c8ea9ec5 Add a Reset Settings button. 2014-01-22 16:33:08 +01:00
Mayhem
0b39d6d3f5 Simplify export settings code.
Firefox does let us download links now.
2014-01-22 15:50:00 +01:00
Mayhem
8a3af6f69f Toggling Header auto-hide on scroll should update the Conf too now. 2014-01-22 09:52:44 +01:00
Zixaphir
702a343f5e Fix image expansion
DURR
2014-01-21 13:57:28 -07:00
Mayhem
5ef395cc8d Simplify code related to clear hidden posts/threads button in settings. 2014-01-21 16:19:57 +01:00
Mayhem
0fdf5c89bb mouseenter did not work as I expected, reverting to mouseover. 2014-01-21 15:37:28 +01:00
Mayhem
508ab4f884 Make $.addClass/rmClass use multiple classes at once. 2014-01-21 15:30:47 +01:00
Mayhem
7495a905dd Fix thread expanding.
Apparently an xhr's reponse is read-only.
2014-01-21 15:17:00 +01:00
Mayhem
e25fd080bc Foolfuuka's API URL does not end with .json so we must define the responseType manually. 2014-01-21 15:09:16 +01:00
Mayhem
710655f13e Use xhr.responseType = 'json'. 2014-01-21 14:46:26 +01:00
Mayhem
2ed498813d Remove outdated Chrome workaround. 2014-01-21 14:26:06 +01:00
Mayhem
878b6afe5a Use mouseenter instead of mouseover for menu entries. 2014-01-21 14:22:58 +01:00
Mayhem
59fa428db5 Warn about Firefox versions <26. 2014-01-21 13:58:50 +01:00
Mayhem
a8068c083f Fix #1384. 2014-01-21 10:20:08 +01:00
Mayhem
0e10e3fd81 Fix index search going badly when inputing only spaces. 2014-01-20 22:45:34 +01:00
Mayhem
a44164c58d Fix crash 2014-01-20 10:02:19 +01:00
Mayhem
fdd6a20c87 rm useless code 2014-01-20 09:51:52 +01:00
Mayhem
5a10d5f75c Re-select archives when the archives list gets updated
or when we select an archive in the settings.
2014-01-20 09:04:32 +01:00
Zixaphir
11e5f348f0 Still hate switches. 2014-01-19 21:38:46 -07:00
Zixaphir
f37484cd33 HTTPS for posting, always. 2014-01-19 16:20:21 -07:00
Zixaphir
a993b440dc Try to get some better errors out of QR.req.onerror
Conflicts:
	builds/4chan-X.user.js
	builds/crx/script.js
	src/General/css/layout.css
2014-01-19 16:19:18 -07:00
Mayhem
bf51864823 Typo. 2014-01-19 13:00:56 +01:00
Mayhem
c47c3ddafe Move previous version check out of Setting and into Main.
Also halve the notice timeout.
2014-01-19 01:05:48 +01:00
Zixaphir
3a61ecafff The good parts. 2014-01-18 16:53:48 -07:00
Mayhem
da203ae76a Update the archives settings tab when manually updating the archives list. 2014-01-19 00:26:00 +01:00
Zixaphir
b0ca427207 Revert "Fix updating the context of threads and index"
This reverts commit e7b1c52dbf9f25aec32bea64c712ee4075f7ef6f.
2014-01-18 14:11:36 -07:00
Zixaphir
e7b1c52dbf Fix updating the context of threads and index 2014-01-18 14:07:56 -07:00
Zixaphir
7d4825dce0 Add word boundaries to the style switcher regex 2014-01-18 13:39:02 -07:00
Zixaphir
8ddf2b4e5f Start working on tightening our control of the Navigation context
Currently breaks posting.

TODO:
* Fix style switching from NSFW to SFW (SFW to NSFW works)
  - It is worth noting this used to work.
* Fix post form not updating its currently selected thread.
* Fix navigation between threads in different boards (same boards
  works? Maybe?)
* Handle race conditions due to pop states.
  - I'm having a lot of trouble wrapping my mind around this one.
    Mostly due to the fact that I have no idea where to begin with
    it. But this isn't a big issue unless you pop state multiple
    times within seconds.

    I just need some exceptions when we try to disconnect features
    that haven't even finished connecting due to threads not being
    available yet.

Most of the early issues, like double-backlinks, incorrect
thumbnails, etc, have been fixed, I think. Or at least I'm no
longer running into them all the time.
2014-01-18 02:34:18 -07:00
Zixaphir
c8514d1029 Fix posting when navigating to new boards via JSON 2014-01-17 16:24:49 -07:00
thebladeee
22ab0a4a12 Update Nyafuu & Add Love is Over 2014-01-17 12:55:46 -07:00
AchtBit
8c3e46d23b Fix wait error regex
There are 2 spaces separating the number of seconds.
2014-01-17 00:33:43 -06:00
Zixaphir
8454ed099c There is always a QR.db in appchan. 2014-01-16 16:52:21 -07:00
Zixaphir
7eb2d0aa34 Mostly fix everything broken. Mostly. 2014-01-16 16:44:18 -07:00
Zixaphir
fc90fd45d9 Fix thread updater 2014-01-16 11:56:21 -07:00
Zixaphir
8135493359 Fix unread count for your posts, among other things 2014-01-16 11:19:37 -07:00
Zixaphir
6095a97921 More of a proof of concept than anything. May revert? 2014-01-16 11:07:19 -07:00
Zixaphir
c32390c437 Small oversights 2014-01-16 10:02:08 -07:00
Zixaphir
69288c7ebe More or less just trying to optimize this. 2014-01-16 09:56:20 -07:00