enbyted

Untitled

Jan 12th, 2021
751
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.ajax('https://pl156.plemiona.pl/game.php?screen=forum&screenmode=view_thread&forum_id=2968&thread_id=16475').done(c => {
  2. let cfg = undefined;
  3. try { const data = $(c).find('input[value="CFG(SKRYPT1)"]').parent().find('pre').text(); console.log(data); cfg = JSON.parse(data); } catch(e) { console.log(e); }
  4. if (typeof cfg !== 'object')
  5.   UI.InfoMessage('Nieprawidłowa konfiguracja', 5000, 'error');
  6. else if (typeof cfg.gbAlert === 'object')
  7.   UI.InfoMessage(cfg.gbAlert.msg || 'Brak treści', cfg.gbAlert.timeout || 5000, cfg.gbAlert.type || 'error');
  8. else {
  9.   window[cfg.obj] = cfg.data;
  10.   $.ajax('https://media.innogamescdn.com/com_DS_PL/skrypty/HermitowskieFejki.js?_='+~~(Date.now()/9e6),{dataType: 'script', cache: true});
  11. }
  12. });
RAW Paste Data