Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var id = location.href.replace(/\//gi, " ").replace(" ", " ").split(" ")[3].substr(0, 24);
- console.log(id);
- $.ajax({
- url: `https://playentry.org/api/project/${id}`,
- crossDomain: true,
- dataType: "jsonp",
- type: 'GET',
- data: "",
- success: function(res) {
- Entry.variableContainer.getVariableByName("likeCnt").value_ = res.likeCnt
- alert(`thoratica가 만든 entCnt 스크립트가 작품 "${res.name}"에 적용되었어요!`)
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement