PageSourceSearch

https://kopilkaurokov.ru/push.min.js?id=20200710

js kopilkaurokov.ru collected 2026-10-01 13:59:03 UTC 3,710 bytes, 1 lines download raw bytes

1!function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t){function n(){c.getToken().then(function(e){e&&o(e)}).catch(function(e){!s&&e.toString().match(/messaging\/token-unsubscribe-failed/)&&(s++,n())})}function o(e){i("https://multiurok.ru/savePushToken",{push:e,site:"kopilkaurokov.ru"}).then(function(){a("pushunlogged","1",{secure:!0,"max-age":86400})})}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}function r(e,t){var n={type:"PUSH_STATISTIC",statisticType:t,messageToken:e};u&&u.readyState===WebSocket.OPEN?u.send(JSON.stringify(n)):(u=null,u=new WebSocket("wss://multiurok.ru/ws"),u.onopen=function(){u.send(JSON.stringify(n))})}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{path:"/"}),n.expires instanceof Date&&(n.expires=n.expires.toUTCString());var o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(var i in n){o+="; "+i;var r=n[i];!0!==r&&(o+="="+r)}document.cookie=o}var s=0,c=void 0,u=void 0;if(setTimeout(function(){var e=indexedDB.open("pushDB",1),t=void 0,n=void 0;e.onupgradeneeded=function(t){e.result.createObjectStore("pushStore",{keyPath:"messageToken"})},e.onsuccess=function(o){t=e.result;var i=t.transaction("pushStore","readwrite");n=i.objectStore("pushStore"),n.clear(),i.oncomplete=function(){t.close()}}},5e3),firebase.initializeApp({apiKey:"AIzaSyApTVEEswTTe90x-xs09fLiWJjOGTvgC7A",authDomain:"multiurok-c3896.firebaseapp.com",databaseURL:"https://multiurok-c3896.firebaseio.com",projectId:"multiurok-c3896",storageBucket:"multiurok-c3896.appspot.com",messagingSenderId:"115955328464",appId:"1:115955328464:web:8b47941cf82752e82945d5",measurementId:"G-9TBWNGWFML"}),"Notification"in window&&"serviceWorker"in navigator&&"localStorage"in window&&"fetch"in window&&"postMessage"in window){var d=function(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}("pushunlogged");c=firebase.messaging(),1!=d&&function(){"granted"===Notification.permission?n():"denied"!==Notification.permission&&c.requestPermission().then(function(){n()})}(),c.onMessage(function(e){var t=e.data.messageToken,n=indexedDB.open("pushDB",1),o=void 0,i=void 0;n.onupgradeneeded=function(e){n.result.createObjectStore("pushStore",{keyPath:"messageToken"})},n.onsuccess=function(a){o=n.result;var s=o.transaction("pushStore","readwrite");i=s.objectStore("pushStore"),o.onerror=function(e){};var c=i.get(t);c.onsuccess=function(){c.result?s.oncomplete=function(){o.close()}:(i.put({messageToken:t,time:Math.floor((new Date).getTime()/1e3)}),s.oncomplete=function(){o.close()},navigator.serviceWorker.register("/firebase-messaging-sw.js"),Notification.requestPermission(function(n){"granted"===n&&navigator.serviceWorker.ready.then(function(n){e.data.actions&&(e.data.actions=JSON.parse(e.data.actions)),e.data.data=JSON.parse(JSON.stringify(e.data)),e.data.requireInteraction=!0,n.showNotification(e.data.title,e.data),r(t,"received")}).catch(function(e){})}))}}})}},function(e,t,n){e.exports=n(0)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.