ProjeXCode Forum: [Request] Link Ke Halaman Info Post Otomatis

Title Role Staff

Title Role Senior Member

Title Role Member

Title Role Junior Member

Title Role New Member

Title Badge Moderator

Title Color Moderator

Title Badge Staff

Title Color Staff

Title Badge Member

Title Color Member

Status Info

Status Verified

ADS Title User

Your Time :

Server Time :

  • [Request] Link Ke Halaman Info Post Otomatis
    September 10, 2022
    Share this Threads
    Close
    semoga ga ada kendala, karena saya buat tidak di blog komik/stream (chapter/episode).

    dan semoga ga dianggap si Mbah thread malware tulisan js ku ini.

    Request Dari Unison.

    Script.js :

    const HttpRequest = (function(){
    let xhttp = new XMLHttpRequest();
     obj={};
     obj.run = function(a,b){
     let IndexUri = a.indexOf('/-/') != -1 ? `/feeds/posts/default${a.substr(a.indexOf('/-/'),a.indexOf('?')-20)}` : `/feeds/posts/default`;
     if(b == null){
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
          if(this.response.feed.openSearch$totalResults.$t < 150){
           HttpRequest.run(`${IndexUri}?alt=json&max-results=150`,'true');
          }else{HttpRequest.run(`${IndexUri}?alt=json&max-results=150&start-index=${this.response.feed.openSearch$totalResults.$t-150}`,'true');}
        }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
     }else{
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
          for(let i in this.response.feed.entry){
          let linkMain = '';
           for(let item in this.response.feed.entry[i].link){
             if(this.response.feed.entry[i].link[item].rel == 'alternate'){
               linkMain = this.response.feed.entry[i].link[item].href;
             }
           }
            for(let item in this.response.feed.entry[i].category){
             if(this.response.feed.entry[i].category[item].term == 'Series'){
               console.log(linkMain);
             }
           }
          }
        }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
     }
     }
      return obj;
    })();


    Untuk Pemanggilnya :

    HttpRequest.run('/feeds/posts/default/-/Solo Leveling?alt=json');


    Hal Yang Harus Diperhatikan :

    1. Ubah dibawah ini dengan selector target ke button "All Chapter/All Episode"

    console.log(linkMain);


    Contoh :

    document.getElementById('btnAll').setAttribute('href',linkMain)


    2. Gunakan Label Series Pada Info Anime Tersebut.

    Last edited : September 10, 2022
    Sat Sep 10, 09:10:00 PM GMT+9
    Maksudnya saya yang kayak gini min
    https://i.ibb.co/xMZYND2/Screenshot-2022-09-10-19-03-14-597-com-kiwibrowser-browser-picsay.png
    Sun Sep 11, 12:25:00 AM GMT+9
    Unison said: Maksudnya saya yang kayak gini min
    https://i.ibb.co/xMZYND2/Screenshot-2022-09-10-19-03-14-597-com-kiwibrowser-browser-picsay.png
    Scriptnya untuk developer, agak sulit dipasang.
    Nanti aku coba pasang kalau memang bisa.
    Sun Sep 11, 03:28:00 AM GMT+9
    Unison said: Maksudnya saya yang kayak gini min
    https://i.ibb.co/xMZYND2/Screenshot-2022-09-10-19-03-14-597-com-kiwibrowser-browser-picsay.png
    1. Buka Edit HTML di Theme Blogger Mu.
    2. CTRL + F cari kalimat "All chapters are in"
    3. Hapus Expression pada attribute href,dan tambahkan attribute id untuk dijadikan selector target.
    <a class='c-theme fw-600' expr:data='data:label.name' expr:href='data:label.url' rel='tag'>
    Jadi :
    <a class='c-theme fw-600' id='infoSeries' expr:data='data:label.name' href='#' rel='tag'>
    4. Taruh Pemanggil JSnya di antara b:if condition.
    <script>HttpRequest.run(&#39;/feeds/posts/default/-/<data:label.name/>?alt=json&#39;);</script>
    5. Letakkan Script.js di atasnya, bisa di atas tag </head>
    <script type='text/javascript'>//<![CDATA[
    const HttpRequest = (function(){
    let xhttp = new XMLHttpRequest();
    obj={};
    obj.run = function(a,b){
    let IndexUri = a.indexOf('/-/') != -1 ? `/feeds/posts/default${a.substr(a.indexOf('/-/'),a.indexOf('?')-20)}` : `/feeds/posts/default`;
    if(b == null){
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    if(this.response.feed.openSearch$totalResults.$t < 150){
    HttpRequest.run(`${IndexUri}?alt=json&max-results=150`,'true');
    }else{HttpRequest.run(`${IndexUri}?alt=json&max-results=150&start-index=${this.response.feed.openSearch$totalResults.$t-150}`,'true');}
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }else{
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    for(let i in this.response.feed.entry){
    let linkMain = '';
    for(let item in this.response.feed.entry[i].link){
    if(this.response.feed.entry[i].link[item].rel == 'alternate'){
    linkMain = this.response.feed.entry[i].link[item].href;
    }
    }
    for(let item in this.response.feed.entry[i].category){
    if(this.response.feed.entry[i].category[item].term == 'Series'){
    document.getElementById('infoSeries').setAttribute('href',linkMain);
    }
    }
    }
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }
    }
    return obj;
    })();
    //]]></script>
    Sun Sep 11, 03:31:00 AM GMT+9
    untuk hasil full structure :
    <script type='text/javascript'>//<![CDATA[
    const HttpRequest = (function(){
    let xhttp = new XMLHttpRequest();
    obj={};
    obj.run = function(a,b){
    let IndexUri = a.indexOf('/-/') != -1 ? `/feeds/posts/default${a.substr(a.indexOf('/-/'),a.indexOf('?')-20)}` : `/feeds/posts/default`;
    if(b == null){
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    if(this.response.feed.openSearch$totalResults.$t < 150){
    HttpRequest.run(`${IndexUri}?alt=json&max-results=150`,'true');
    }else{HttpRequest.run(`${IndexUri}?alt=json&max-results=150&start-index=${this.response.feed.openSearch$totalResults.$t-150}`,'true');}
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }else{
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    for(let i in this.response.feed.entry){
    let linkMain = '';
    for(let item in this.response.feed.entry[i].link){
    if(this.response.feed.entry[i].link[item].rel == 'alternate'){
    linkMain = this.response.feed.entry[i].link[item].href;
    }
    }
    for(let item in this.response.feed.entry[i].category){
    if(this.response.feed.entry[i].category[item].term == 'Series'){
    document.getElementById('infoSeries').setAttribute('href',linkMain);
    }
    }
    }
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }
    }
    return obj;
    })();
    //]]></script>
    <div class='tac'>All chapters are in <b:with value='[&quot;Chapter&quot;,&quot;Project&quot;]' var='chf'>
    <b:loop index='i' values='data:post.labels' var='label'>
    <b:if cond='data:label.name not in data:chf'>
    <a class='c-theme fw-600' expr:data='data:label.name' href='#' id='infoSeries' rel='tag'>
    <data:label.name/>
    </a>
    <script>HttpRequest.run(&#39;/feeds/posts/default/-/<data:label.name/>?alt=json&#39;);</script>
    </b:if>
    </b:loop>
    </b:with></div>


    untuk contoh blog :
    https://tkopd.blogspot.com
    Sun Sep 11, 01:42:00 PM GMT+9
    김서정 said: untuk hasil full structure :
    <script type='text/javascript'>//<![CDATA[
    const HttpRequest = (function(){
    let xhttp = new XMLHttpRequest();
    obj={};
    obj.run = function(a,b){
    let IndexUri = a.indexOf('/-/') != -1 ? `/feeds/posts/default${a.substr(a.indexOf('/-/'),a.indexOf('?')-20)}` : `/feeds/posts/default`;
    if(b == null){
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    if(this.response.feed.openSearch$totalResults.$t < 150){
    HttpRequest.run(`${IndexUri}?alt=json&max-results=150`,'true');
    }else{HttpRequest.run(`${IndexUri}?alt=json&max-results=150&start-index=${this.response.feed.openSearch$totalResults.$t-150}`,'true');}
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }else{
    xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    for(let i in this.response.feed.entry){
    let linkMain = '';
    for(let item in this.response.feed.entry[i].link){
    if(this.response.feed.entry[i].link[item].rel == 'alternate'){
    linkMain = this.response.feed.entry[i].link[item].href;
    }
    }
    for(let item in this.response.feed.entry[i].category){
    if(this.response.feed.entry[i].category[item].term == 'Series'){
    document.getElementById('infoSeries').setAttribute('href',linkMain);
    }
    }
    }
    }
    };
    xhttp.open("GET", a, true);
    xhttp.responseType = 'json'
    xhttp.send();
    }
    }
    return obj;
    })();
    //]]></script>
    <div class='tac'>All chapters are in <b:with value='[&quot;Chapter&quot;,&quot;Project&quot;]' var='chf'>
    <b:loop index='i' values='data:post.labels' var='label'>
    <b:if cond='data:label.name not in data:chf'>
    <a class='c-theme fw-600' expr:data='data:label.name' href='#' id='infoSeries' rel='tag'>
    <data:label.name/>
    </a>
    <script>HttpRequest.run(&#39;/feeds/posts/default/-/<data:label.name/>?alt=json&#39;);</script>
    </b:if>
    </b:loop>
    </b:with></div>


    untuk contoh blog :
    https://tkopd.blogspot.com
    script pemanggilnya tararuh di mana?
    Sun Sep 11, 02:40:00 PM GMT+9
    Wernayasa said: Scriptnya untuk developer, agak sulit dipasang.
    Nanti aku coba pasang kalau memang bisa.
    bang blogmu kenepa gak bisa akses? update template kah?
    Sun Sep 11, 03:45:00 PM GMT+9
    Lucifer said: script pemanggilnya tararuh di mana?
    kalo beda theme terserah dirimu mau ditempatin dimna asal di bawahnya object yg mau kamu kasih link info Series
    Sun Sep 11, 03:58:00 PM GMT+9
    Enjoe said: bang blogmu kenepa gak bisa akses? update template kah?
    Iya, sedang update forum.
    Sun Sep 25, 11:34:00 PM GMT+9
    Bang itu saya mau nanya kan pas chapter 151 link ke halaman info nya tidak bisa? Bisa ga bang batasanya di lebihkan, bukan 150 chapter doank.

    Similar Threads