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("작품을 한 번 실행한 뒤 정지를 해야 적용됩니다!")
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement