From c5b2539bc0cd83577b317b660c79b027064ee2e4 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 15 Feb 2013 22:45:11 +0100 Subject: [PATCH] Add the base64'd icon to the metadata. Let grunt insert the base64'd beep audio file. --- 4chan_x.user.js | 4 ++-- audio/beep.wav | Bin 0 -> 828 bytes package.json | 1 - src/config.coffee | 2 +- src/features.coffee | 2 +- src/metadata.js | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 audio/beep.wav diff --git a/4chan_x.user.js b/4chan_x.user.js index f7ef04627..44b6e9aa3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -17,7 +17,7 @@ // @run-at document-start // @updateURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.meta.js // @downloadURL https://github.com/MayhemYDG/4chan-x/raw/stable/4chan_x.user.js -// @icon https://github.com/MayhemYDG/4chan-x/raw/stable/img/icon.gif +// @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7 // ==/UserScript== /* 4chan X Alpha - Version 3.0.0 - 2013-02-15 @@ -55,7 +55,7 @@ '404 Redirect': [true, 'Redirect dead threads and images.'], 'Keybinds': [true, 'Bind actions to keyboard shortcuts.'], 'Time Formatting': [true, 'Localize and format timestamps arbitrarily.'], - 'Relative Post Dates': [true, 'Display dates like "3 minutes ago". Tooltip shows the timestamp.'], + 'Relative Post Dates': [false, 'Display dates like "3 minutes ago". Tooltip shows the timestamp.'], 'File Info Formatting': [true, 'Reformat the file information.'], 'Comment Expansion': [true, 'Can expand too long comments.'], 'Thread Expansion': [true, 'Can expand threads to view all replies.'], diff --git a/audio/beep.wav b/audio/beep.wav new file mode 100644 index 0000000000000000000000000000000000000000..43783cd9678273578745248fb0c00fc8a773d937 GIT binary patch literal 828 zcmb7)SyNI00EKV$(qlhB#3h3(?hBej807*kWWs>BjYwz~5Xu!V2#6aXr2>k6e z;3gpA3weaAodf_^&wu>!|KSN6VsBjs0L~rzn#pxk994J(Qb&>fmKE*dc`q95;QV)61VE{B48ygO$* zUr2aJ4@z>bASXN7`20}NxM$k`QGqLr3($DY>pnGxne6w>`)={lh@)osQ@0(qbLU+W zJvecG75ToG6UPe0zIB;gKl!2g@#rS6WzDCIgEV{=KU5|8bp?_Cr*6P>>9oc^^!BG5x(?VE_#lOL5A zey7)C**UENnF(mAcYMXy4L*K=DssR7cwvo6&k9IcU9z68rXed>et%Tysbmq;}@CKhc13L`CBGlR_9 z6jWw5RXRClwQ3nmT8?nkGCtW=l9xxT=rfzf`*^GZ2Di;PVi^z@7PC0b!^6fw1-qoE zR6g)#cu-Z&F5%Sl3=R$G_?%KsRl8xp&<2%pxk62Ee}9McX?dBTvAefVU&pI>%2#yu zyw*1gpH=Xst*^TEDv0--54Y&M^cq;e7l@lX^qpE+rQk(%eQQUDu1+KrLJDnryRJc8 zSqaHBt!*!xB%&&)wprJzYp$&pL6QdTOPxv~h9HSjqt&XFaCJ3Yr)trv>!o5bEN{}Z ds2gN(4J>O=Yt)T$2@K2XRcdupofMWRe*>b%aHjwO literal 0 HcmV?d00001 diff --git a/package.json b/package.json index 21d640a82..a8771b026 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "grunt-contrib-clean": "0.3.x", "grunt-contrib-coffee": "0.3.x", "grunt-exec": "0.3.x", - "grunt-image-embed": "0.2.x", "qunitjs": "1.x.x" }, "license": "MIT", diff --git a/src/config.coffee b/src/config.coffee index 1c57d8a84..a97ed93bd 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -5,7 +5,7 @@ Config = '404 Redirect': [true, 'Redirect dead threads and images.'] 'Keybinds': [true, 'Bind actions to keyboard shortcuts.'] 'Time Formatting': [true, 'Localize and format timestamps arbitrarily.'] - 'Relative Post Dates': [true, 'Display dates like "3 minutes ago". Tooltip shows the timestamp.'] + 'Relative Post Dates': [false, 'Display dates like "3 minutes ago". Tooltip shows the timestamp.'] 'File Info Formatting': [true, 'Reformat the file information.'] 'Comment Expansion': [true, 'Can expand too long comments.'] 'Thread Expansion': [true, 'Can expand threads to view all replies.'] diff --git a/src/features.coffee b/src/features.coffee index cb2230ad2..a3ba9956c 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -2473,7 +2473,7 @@ ThreadUpdater = http://freesound.org/people/pierrecartoons1979/sounds/90112/ cc-by-nc-3.0 ### - beep: 'data:audio/wav;base64,UklGRjQDAABXQVZFZm10IBAAAAABAAEAgD4AAIA+AAABAAgAc21wbDwAAABBAAADAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkYXRhzAIAAGMms8em0tleMV4zIpLVo8nhfSlcPR102Ki+5JspVEkdVtKzs+K1NEhUIT7DwKrcy0g6WygsrM2k1NpiLl0zIY/WpMrjgCdbPhxw2Kq+5Z4qUkkdU9K1s+K5NkVTITzBwqnczko3WikrqM+l1NxlLF0zIIvXpsnjgydZPhxs2ay95aIrUEkdUdC3suK8N0NUIjq+xKrcz002WioppdGm091pK1w0IIjYp8jkhydXPxxq2K295aUrTkoeTs65suK+OUFUIzi7xqrb0VA0WSoootKm0t5tKlo1H4TYqMfkiydWQBxm16+85actTEseS8y7seHAPD9TIza5yKra01QyWSson9On0d5wKVk2H4DYqcfkjidUQB1j1rG75KsvSkseScu8seDCPz1TJDW2yara1FYxWSwnm9Sn0N9zKVg2H33ZqsXkkihSQR1g1bK65K0wSEsfR8i+seDEQTxUJTOzy6rY1VowWC0mmNWoz993KVc3H3rYq8TklSlRQh1d1LS647AyR0wgRMbAsN/GRDpTJTKwzKrX1l4vVy4lldWpzt97KVY4IXbUr8LZljVPRCxhw7W3z6ZISkw1VK+4sMWvXEhSPk6buay9sm5JVkZNiLWqtrJ+TldNTnquqbCwilZXU1BwpKirrpNgWFhTaZmnpquZbFlbVmWOpaOonHZcXlljhaGhpZ1+YWBdYn2cn6GdhmdhYGN3lp2enIttY2Jjco+bnJuOdGZlZXCImJqakHpoZ2Zug5WYmZJ/bGlobX6RlpeSg3BqaW16jZSVkoZ0bGtteImSk5KIeG5tbnaFkJKRinxxbm91gY2QkIt/c3BwdH6Kj4+LgnZxcXR8iI2OjIR5c3J0e4WLjYuFe3VzdHmCioyLhn52dHR5gIiKioeAeHV1eH+GiYqHgXp2dnh9hIiJh4J8eHd4fIKHiIeDfXl4eHyBhoeHhH96eHmA' + beep: 'data:audio/wav;base64,<%= grunt.file.read("audio/beep.wav", {encoding: "base64"}).toString("base64") %>' cb: online: -> diff --git a/src/metadata.js b/src/metadata.js index d7466179e..ceefa6fd1 100644 --- a/src/metadata.js +++ b/src/metadata.js @@ -17,5 +17,5 @@ // @run-at document-start // @updateURL <%= meta.repo %>raw/stable/<%= meta.files.metajs %> // @downloadURL <%= meta.repo %>raw/stable/<%= meta.files.userjs %> -// @icon <%= meta.repo %>raw/stable/img/icon.gif +// @icon data:image/gif;base64,<%= grunt.file.read('img/icon.gif', {encoding: 'base64'}).toString('base64') %> // ==/UserScript==