Paste.installgentoo.net embedding

This commit is contained in:
Jordan Bates 2013-05-01 12:58:05 -07:00
parent 9c0dd570dd
commit 9ebd79bb3e
8 changed files with 42 additions and 7 deletions

View File

@ -2,6 +2,7 @@ seaweedchan:
- External image embedding - External image embedding
- Account for time options in youtube links for embedding - Account for time options in youtube links for embedding
- Once again remove /v/ and /vg/ archiving... ;_; - Once again remove /v/ and /vg/ archiving... ;_;
- Add paste.installgentoo.net embedding
### 1.1.6 - 2013-05-01 ### 1.1.6 - 2013-05-01
seaweedchan: seaweedchan:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -89,7 +89,7 @@ Config =
] ]
'Link Title': [ 'Link Title': [
true true
'Replace the link of a supported site with its actual title. Currently Supported: YouTube, Vimeo, SoundCloud' 'Replace the link of a supported site with its actual title. Currently Supported: YouTube, Vimeo, SoundCloud, and Github gists'
] ]
'Filtering': 'Filtering':

View File

@ -935,3 +935,7 @@ a:only-of-type > .remove {
background: transparent url('data:image/png;base64,<%= grunt.file.read("src/General/img/links/image.png", {encoding: "base64"}) %>') center left no-repeat!important; background: transparent url('data:image/png;base64,<%= grunt.file.read("src/General/img/links/image.png", {encoding: "base64"}) %>') center left no-repeat!important;
padding-left: 18px; padding-left: 18px;
} }
.linkify.InstallGentoo {
background: transparent url('data:image/png;base64,<%= grunt.file.read("src/General/img/links/installgentoo.png", {encoding: "base64"}) %>') center left no-repeat!important;
padding-left: 18px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

View File

@ -225,6 +225,12 @@ Linkify =
response = JSON.parse(@responseText).files response = JSON.parse(@responseText).files
return file for file of response when response.hasOwnProperty file return file for file of response when response.hasOwnProperty file
InstallGentoo:
regExp: /.*(?:paste.installgentoo.com\/view\/)([0-9a-z_]+)/
el: ->
$.el 'iframe',
src: "http://paste.installgentoo.com/view/embed/#{@name}"
embedder: (a) -> embedder: (a) ->
return [a] unless Conf['Link Title'] return [a] unless Conf['Link Title']
titles = {} titles = {}