Jump to content

origon

Game Adapters
  • Posts

    190
  • Joined

  • Last visited

  • Days Won

    4
Posts posted by origon
 
 
  1. In the games index.html

    just before (/head) insert this code

     

    <script type="text/javascript">
             function scorepost(href, inputs) {
        var gform = document.createElement('form');
        gform.method = 'post';
        gform.action = href;
        gform.target = '_parent';
        for (var k in inputs) {
            var input = document.createElement('input');
            input.setAttribute('name', k);
            input.setAttribute('value', inputs[k]);
            gform.appendChild(input);
        }
        document.body.appendChild(gform);
        gform.submit();
        document.body.removeChild(gform);
    }
    </script>

    and your game should work fine in IpsProArcade

  2. Then go to ThirdParty.js and find

    submitScore:

    after function(score) {

    insert

    let pathArray = window.location.pathname.split('/');
                let newpath = '';
                if (pathArray[1] && pathArray[1] != 'arcade' && pathArray[1] != 'games') {
                    newpath = '/' + pathArray[1];
                }
                scorepost(window.location.protocol + '//' + window.location.hostname + newpath + '/index.php?act=Arcade&do=newscore', {
                  gname : 'AfriSavanah_Origon',
                  gscore: score
                });

    Change the gname to your file name

     

    and gscore is always score in these games

     

  3. It's for games from htmlgames.com only

     

    And here is my description on how to edit game.js

     

    edit game.js remove ads and remove use cookie:

    STEP 1
    In line find

    Search for

    GameAds!

    Code: Select all

    if(typeof GameAds!==_0xffb4('0x6a')&&GameAds[_0xffb4('0x219')]()){setTimeout(function(){GameAds['requestAd'](GameMenu['startGame']);},0x0);}else

    delete this code

    STEP 2

    Find

    Code: Select all

    {data;}else{return;}

    Replace with

    Code: Select all

    {return;}else{return;}


    STEP 3
    Only 100% hits should be replaced!
    Find

    Code: Select all

    https://cdn.htmlgames.com/cookie/

    Replace with

    Code: Select all

    js/index.htm


    STEP 4
    Find

    Code: Select all

    //www.google-analytics.com/analytics.js

    Replace with

    Code: Select all

    js/index.htm


    STEP 5

    Find

    Code: Select all

    https://adservice.google.com/getconfig/pubvendors

    Replace with

    Code: Select all

    js/index.htm

    That's all

 
×
  • Create New...