Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1105
example.js
Active
Public
Actions
Authored by
epriestley
on Mar 31 2014, 11:55 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F136619: example.js
Mar 31 2014, 11:55 PM
2014-03-31 23:55:08 (UTC+0)
Subscribers
None
function
hasInlineImages
(
el
)
{
for
(
var
ii
=
0
;
ii
<
el
.
getNumChildren
();
ii
++
)
{
var
child
=
el
.
getChild
(
ii
);
if
(
child
.
getType
()
==
"INLINE_IMAGE"
)
{
var
blob
=
UrlFetchApp
.
fetch
(
"https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQrynF6f9UOdCBs47WAlLdFU319YmB6H43ymqbKgNyrU8dEdtDtpQ"
).
getBlob
()
el
.
insertInlineImage
(
ii
,
blob
);
el
.
removeChild
(
child
);
return
true
;
}
}
return
false
;
}
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Mar 31 2014, 11:55 PM
2014-03-31 23:55:08 (UTC+0)
epriestley
changed the title of this paste from untitled to
example.js
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment