151 Commits

Author SHA1 Message Date
ccd0
b22ea2b9cc don't embed inside [code] tags 2014-07-05 03:07:03 -07:00
ccd0
42468dd5c6 make pastebin embedding work when link is to raw version or other page using ?i= 2014-06-08 10:17:45 -07:00
ccd0
db15797639 youtube embedding: h-m-s start times need to be converted 2014-06-08 02:29:22 -07:00
ccd0
f708da1240 fix youtube start time, make youtube embedding more robust against garbage appended to URLs 2014-06-08 01:16:08 -07:00
ccd0
4f1fbeaf84 fix extra argument 2014-05-12 00:25:48 -07:00
ccd0
00b012b1db prefer vorbis over mp3 2014-05-10 00:49:12 -07:00
ccd0
a7f20420fe Set title in any clones already created
This fixes a bug where titles would sometimes not show up in posts
retrieved from another thread or the archive.
2014-05-10 00:34:18 -07:00
ccd0
989ed8e787 improve SoundCloud embed 2014-05-09 22:40:09 -07:00
ccd0
24db78a734 Support twitch archive links
Also drop <param name=movie> which should only be needed for IE.
2014-05-09 20:31:56 -07:00
ccd0
2e3aa93ef2 rewrite innerHTML for twitch.tv 2014-05-09 19:37:19 -07:00
ccd0
90149c3b9c Revert "twitch.tv URLs appear to be banned from 4chan, no point in maintaining this code"
This reverts commit 6002d118d6fe6cf21955a1ed16d56d2eaad40471.
2014-05-09 17:29:12 -07:00
ccd0
dd204d95f1 easier to see safety of innerHTML use from one line 2014-05-09 02:46:16 -07:00
ccd0
589b462f84 hide links on embed instead of recreating them on unembed 2014-05-09 02:39:58 -07:00
ccd0
c06a24742f one less innerHTML to check 2014-05-09 01:40:24 -07:00
ccd0
14138de371 fix stray quote mark 2014-05-09 01:21:20 -07:00
ccd0
546c5d3297 soundcloud doesn't need to inject their own HTML 2014-05-09 01:15:29 -07:00
ccd0
0110186caa update mediacru.sh filetypes 2014-05-09 00:51:09 -07:00
ccd0
2a9f2cc196 switch to template approach 2014-05-09 00:31:37 -07:00
ccd0
6002d118d6 twitch.tv URLs appear to be banned from 4chan, no point in maintaining this code 2014-05-08 23:35:03 -07:00
ccd0
ba9f2c65a3 remove semicolon 2014-05-08 23:15:57 -07:00
Zixaphir
40d550ab4e Fuck protocols. 2014-05-08 23:12:14 -07:00
Zixaphir
e767f77bce Clean reserved words 2014-05-08 23:05:05 -07:00
Zixaphir
a2e5d07976 Small Linkifier miss involving hostname.com:port 2014-05-08 22:37:08 -07:00
ccd0
9eabd7a4dc remove leftover cached title stuff 2014-05-08 22:31:25 -07:00
Zixaphir
af62b44df1 Eliminate title cacheing for the time being.
Causing too many problems.
Also attempt to optimize Linkify.
2014-05-08 22:22:04 -07:00
Zixaphir
83cfa3fea9 Lets not even bother linkifying a comment with no links.
ccd0: not committing this part for now:
Also switch out some loops.
2014-05-08 21:59:01 -07:00
ccd0
b149071d67 fix embedding in inline quotes 2014-05-08 21:36:22 -07:00
ccd0
191aee4a5d move regString definition 2014-05-08 19:57:08 -07:00
ccd0
abf8459325 small fixes to mediacrush embedding 2014-05-08 01:51:34 -07:00
ccd0
1ddca2a236 I don't think these are exploitable, but better to be safe 2014-05-08 01:44:36 -07:00
ccd0
d3c42c25cc this should be textContent 2014-05-08 01:31:51 -07:00
ccd0
8d9d230a60 don't execute SVG javascript 2014-05-08 00:59:06 -07:00
ccd0
3b3ec60dbe get rid of unwanted style on embeds 2014-04-13 00:39:34 -07:00
ccd0
c5733e47bc change vocaroo embed to HTML5 2014-04-13 00:29:37 -07:00
ccd0
568da4ba53 minor fix 2014-04-13 00:06:55 -07:00
ccd0
9193c3e0f1 fix wrongly embedded links with dummy types 2014-03-31 21:20:12 -07:00
ccd0
4f260137f1 embed direct video links 2014-03-25 00:50:41 -07:00
ccd0
42069ff693 test for embed types in deterministic order 2014-03-24 22:08:39 -07:00
Zixaphir
32b020c701 Fix titlelink. 2014-02-16 02:27:26 -07:00
Zixaphir
6dd0cac797 Merge branch 'master' of https://github.com/Spittie/4chan-x into v3
Conflicts:
	CHANGELOG.md
	LICENSE
	builds/4chan-X.meta.js
	builds/4chan-X.user.js
	builds/crx/script.js
	src/Archive/Redirect.coffee
	src/General/Header.coffee
	src/Monitoring/Favicon.coffee
2014-02-16 01:00:41 -07:00
Kabir Sala
017502e0dd Twitter embedding 2014-02-15 22:26:12 +01:00
Kabir Sala
cff413769e cleanup 2014-02-12 23:56:30 +01:00
Zixaphir
b62d82bed0 Mayhem made responseType JSON default for any URL containing .json. 2014-01-24 14:48:39 -07:00
Zixaphir
91233b8d61 remove [].contains. It was a bad idea.
I shouldn't be messing with stuff like this without a really good
reason for doing so, and the longer I thought about it, the more
it occurred to me that I didn't have one.
2013-12-24 14:41:21 -07:00
Zixaphir
0e1b8c099c Forgot a return
Also consistency.
2013-12-16 14:03:30 -07:00
Zixaphir
0cafd9ae61 Merge @mahkoh's embedding fixes 2013-12-16 13:45:56 -07:00
Jordan Bates
2094164ff3 Strawpoll embedding, close #206 2013-11-10 23:35:32 -07:00
Zixaphir
9fb8ab50e1 MediaCrush embedding (the right way?) 2013-10-16 14:31:18 -07:00
Zixaphir
91cedb3b89 Merge branch 'v3' of git://github.com/MayhemYDG/4chan-x into v3
Conflicts:
	CHANGELOG.md
	html/General/Settings-section-Rice.html
	img/changelog/3.9.0/0.png
	package.json
	src/Images/AutoGIF.coffee
	src/Images/RevealSpoilers.coffee
	src/Miscellaneous/ExpandComment.coffee
	src/Miscellaneous/IDColor.coffee
	src/Monitoring/Unread.coffee
	src/Posting/QuickReply.coffee
	src/Quotelinks/QuoteInline.coffee
	src/Quotelinks/QuotePreview.coffee
	src/Quotelinks/QuoteYou.coffee
	src/Quotelinks/Quotify.coffee
2013-10-13 13:53:38 -07:00
Mayhem
10e93091d7 {Post,Thread}::callbacks => {Post,Thread}.callbacks 2013-10-02 11:38:15 +02:00