Home » The Last of Us Part 2 Takes Home Top Prize at The Game Awards: Here Are All the Winners
The Last of Us Part 2 Takes Home Top Prize at The Game Awards: Here Are All the Winners
Another year, another round of Geoff Keighley’s The Game Awards down. Despite the challenges presented by the pandemic, the event did come together as a slickly produced (if a bit overstuffed) show, one packed with a handful of smaller reveals and some eye-popping teases. From Vin Diesel with dinosaurs to a derelict Mass Relay , almost everybody watching had something to freak out about on Twitter.
As for the award winners themselves, well, it doesn’t seem unfair to say this year’s results are a little more to-be-expected than 2019’s Sekiro upset and the string of Disco Elysium wins. This year’s big winner was The Last of Us Part 2, which despite delays , reports of extreme crunch , and a fraught period marked by abuse and Twitter spats upon its release , managed to stand out in the eye of enough critics and influencers to take home the show’s Game of the Year award and several others.
Still, smaller games and a couple other blockbusters did alright for themselves this year. Innersloth, creators of Among Us , won the awards for Best Mobile and Best Multiplayer while also stealing viewers’ hearts with exuberant, teary-eyed acceptance speeches; Supergiant’s Hades walked away with the Best Indie award while also clinching Best Action over juggernauts like Half-Life: Alyx and Doom Eternal; Final Fantasy 7 Remake picked up Best Role Playing and Best Score/Music for its reimagining of the 1997 classic. You can find the full list of nominees and winners (bolded at the top of each category) below.
Also, don’t forget that The Game Awards Festival is happening until Dec. 14 , providing a number of free demos for new and upcoming games via Steam, Xbox, and GeForce NOW.
Game of the Year
WIN: The Last of Us Part 2 (Naughty Dog/SIE)
Animal Crossing: New Horizons (Nintendo)
Doom Eternal (id Software/Bethesda)
Final Fantasy 7 Remake (Square Enix)
Ghost of Tsushima (Sucker Punch/SIE)
Hades (Supergiant Games)
Best Game Direction
WIN: The Last of Us Part 2 (Naughty Dog/SIE)
Final Fantasy 7 Remake (Square Enix)
Ghost of Tsushima (Sucker Punch/SIE)
Hades (Supergiant Games)
Half-Life: Alyx (Valve)
Best Narrative
WIN: The Last of Us Part 2 (Neil Druckmann, Halley Gross)
13 Sentinels: Aegis Rim (George Kamitani)
Final Fantasy 7 Remake (Kazushige Nojima, Motomu Toriyama, Hiroki Iwaki, Sachie Hirano)
Ghost of Tsushima (Ian Ryan, Liz Albl, Patrick Downs, Jordan Lemos)
Hades (Greg Kasavin)
Best Art Direction
WIN: Ghost of Tsushima (Sucker Punch/SIE)
Final Fantasy 7 Remake (Square Enix)
Hades (Supergiant Games)
Ori and the Will of the Wisps (Moon Studios/Xbox Game Studios)
The Last of Us Part 2 (Naughty Dog/SIE)
Best Score and Music
WIN: Final Fantasy 7 Remake (Nobuo Uematsu, Masahi Hamauzu, Mitsuto Suzuki)
Doom Eternal (Mick Gordon)
Hades (Darren Korb)
Ori and the Will of the Wisps (Gareth Coker)
The Last of Us Part 2 (Gustavo Santaolala, Mac Quale)
Best Audio Design
WIN: The Last of Us Part 2 (Naughty Dog/SIE)
Doom Eternal (id Software/Bethesda)
Half-Life: Alyx (Valve)
Ghost of Tsushima (Sucker Punch/SIE)
Resident Evil 3 (Capcom)
Best Performance
WIN: Laura Bailey as Abby, The Last of Us Part 2
Ashley Johnson as Ellie, The Last of Us Part 2
Daisuke Tsuji as Jin Sakai, Ghost of Tsushima
Logan Cunningham as Hades, Hades
Nadji Jeter as Miles Morales, Marvel’s Spider-Man: Miles Morales
Games for Impact
WIN: Tell Me Why (Dontnod Entertainment/Xbox Game Studios)
If Found… (DREAMFEEL/Annapurna Interactive)
Kentucky Route Zero: TV Edition (Cardboard Computer/Annapurna Interactive)
Spiritfarer (Thunder Lotus Games)
Through the Darkest of Times (Paintbucket Games)
Best Ongoing
WIN: No Man’s Sky (Hello Games)
Apex Legends (Respawn/EA)
Destiny 2 (Bungie)
Call of Duty Warzone (Infinity Ward/Activision)
Fortnite (Epic Games)
Best Indie
WIN: Hades (Supergiant Games)
Carrion (Phobia Game Studio)
Fall Guys: Ultimate Knockout (Mediatonic/Devolver)
Spelunky 2 (Mossmouth)
Spiritfarer (Thunder Lotus Games)
Best Mobile
WIN: Among Us (InnerSloth)
Call of Duty Mobile (TiMi Studios/Activision)
Genshin Impact (miHoYo)
Legends of Runeterra (Riot Games)
Pokemon Cafe Mix (Genius Sonority)
Best Community Support
WIN: Fall Guys (Mediatonic/Devolver)
Apex Legends (Respawn/EA)
Destiny 2 (Bungie)
Fortnite (Epic Games)
No Man’s Sky (Hello Games)
Valorant (Riot Games)
Innovation in Accessibility
WIN: The Last of Us Part 2 (Naughty Dog/SIE)
Assassin’s Creed Valhalla (Ubisoft Montreal/Ubisoft)
Grounded (Obsidian/Xbox Game Studios)
HyperDot (Tribe Games)
Watch Dogs Legion (Ubisoft Toronto/Ubisoft)
Best VR/AR
WIN: Half-Life: Alyx (Valve)
Dreams (Media Molecule/SIE)
Marvel’s Iron Man VR (Camoflaj/SIE)
Star Wars: Squadrons (Motive Studios/EA)
The Walking Dead: Saints & Sinners (Skydance Interactive)
Best Action
WIN: Hades (Supergiant Games)
Doom Eternal (id Software/Bethesda)
Half-Life: Alyx (Valve)
Nioh 2 (Team Ninja)
Streets of Rage 4 (DotEmu)
Best Action/Adventure
WIN: The Last of Us Part 2 (Naughty Dog/SIE)
Assassin’s Creed Valhalla (Ubisoft Montreal/Ubisoft)
Ghost of Tsushima (Sucker Punch/SIE)
Marvel’s Spider-Man: Miles Morales (Insomniac Games/SIE)
Ori and the Will of the Wisps (Moon Studios/Xbox Game Studios)
Star Wars Jedi: Fallen Order (Respawn/EA)
Best Role Playing
WIN: Final Fantasy 7 Remake (Square Enix)
Genshin Impact (miHoYo)
Persona 5 Royal (Atlus, P Studios)
Wasteland 3 (inXile Entertainment/Koch)
Yakuza: Like a Dragon (Ryu Ga Gotoku Studio/Sega)
Best Fighting
WIN: Mortal Kombat 11/Ultimate (NetherRealm Studios/WB Games)
Granblue Fantasy: Versus (Arc System Works/Cygames)
Street Fighter V: Champion Edition (Dimps/Capcom)
One Punch Man: A Hero Nobody Knows (Spike Chunsoft/Bandai-Namco)
Under Night In-Birth Exe: Late[cl-r] (French Bread/Arc System Works)
Best Family
WIN: Animal Crossing: New Horizons (Nintendo)
Crash Bandicoot 4: It’s About Time (Toys for Bob/Activision)
Fall Guys: Ultimate Knockout (Mediatonic/Devolver)
Mario Kart Live: Home Circuit (Velan Studios/Nintendo)
Minecraft Dungeons (Mojang/Double Eleven/Xbox Game Studios)
Paper Mario: The Origami King (Intelligent Systems/Nintendo)
Best Sim/Strategy
WIN: Microsoft Flight Simulator (Asobo/Xbox Game Studios)
Crusader Kings 3 (Paradox Development Studio/Paradox)
Desperados 3 (Mimimi Games/THQN)
Gears Tactics (Splash Damage/The Coalition/Xbox Game Studios)
XCOM: Chimera Squad (Firaxis/2K)
Best Sports/Racing
WIN: Tony Hawk’s Pro Skater 1 + 2 (Vicarious Visions/Activision)
Dirt 5 (Codemasters Cheshire/Codemasters)
F1 2020 (Codemasters Birmingham /Codemasters)
FIFA 21 (EA Vancouver/EA Sports)
NBA 2K21 (Visual Concepts/2K)
Best Multiplayer
WIN: Among Us (InnerSloth)
Animal Crossing: New Horizons (Nintendo)
Call of Duty: Warzone (Infinity Ward/Raven/Activision)
Fall Guys: Ultimate Knockout (Mediatonic/Devolver)
Valorant (Riot Games)
Best Debut Game
WIN: Phasmophobia (Kinetic Games)
Carrion (Phobia Game Studio/Devolver)
Mortal Shell (Cold Symmetry/Playstack)
Raji: An Ancient Epic (Nodding Heads Games)
Röki (Polygon Treehouse/CI Games)
Content Creator of the Year
WIN: Valkyrae
Alanah Pearce
NickMercs
TimtheTatman
Jay Ann Lopez
Best Esports Game
WIN: League of Legends (Riot Games)
Call of Duty: Modern Warfare (Infinity Ward/Raven/Activision)
Counter-Strike: Global Offensive (Valve)
Fortnite (Epic Games)
Valorant (Riot Games)
Best Esports Athlete
WIN: Heo “Showmaker” Su / League of Legends
Ian “Crimsix” Porter / Call of Duty
Kim “Canyon” Geon-bu / League of Legends
Anthony “Shotzzy” Cuevas-Castro / Call of Duty
Matthieu “ZywOo” Herbaut / CS:GO
Best Esports Team
WIN: G2 Esports / League of Legends
DAMWON Gaming / League of Legends
Dallas Empire / Call of Duty
San Francisco Shock / Overwatch League
Team Secret / DOTA2
Best Esports Event
WIN: League of Legends World Championship 2020
BLAST Premier: Spring E2020 European Finals (CS:GO)
Call of Duty League Championship 2020
IEM Katowice 2020 (CS:GO)
Overwatch League Grand Finals 2020
Best Esports Host
WIN: Eefje “Sjokz” Depoortere
Alex “Machine” Richardson
Alex “Goldenboy” Mendez
James “Dash” Patterson
Jorien “Sheever” van der Heijden
Best Esports Coach
WIN: Danny “Zonic” Sørensen
Dae-Hee “Crusty” Park
Fabian “Grabbz” Lohmann
Lee “Zefa” Jae-Min
Raymond “Rambo” Lussier
');
jQuery('.video-container', yt_video_wrapper).remove();
jQuery('.bb_wrapper', yt_video_wrapper).append('Watch on YouTube ');
});
});
}
function runComscore() {
var _comscore = _comscore || [];
_comscore.push({ c1: "2", c2: "8518622" });
(function() {
var s = document.createElement("script");
el = document.getElementsByTagName("script")[0];
s.async = true;
s.src = "https://sb.scorecardresearch.com/beacon.js";
el.parentNode.insertBefore(s, el);
})();
}
function runFacebookLogin() {
$(document).ready(function() {
fbs = $("[data-action=facebook-login]");
for(i = 0; i < fbs.length; i++) {
new FacebookLogin({
target: fbs[i]
});
}
});
}
function triggerMormont () {
mormont('set', 'section', 'article');
mormont('set', 'language', 'en');
mormont('set', 'platforms', ['pc','ps4','switch','xboxone']);
mormont('set', 'published', "2020-12-11T15:40:00+00:00");
mormont('set', 'article_type', "news");
mormont('set', 'author', "Mathew Olson");
mormont('set', 'tags', ['tag:innersloth','tag:naughty-dog','tag:sony','tag:square-enix','tag:sucker-punch','tag:supergiant-games','tag:the-game-awards-2020','game:league-of-legends','game:phasmophobia','game:the-last-of-us-part-2'])
mormont('set', 'medium', 'web');
mormont('set', 'is_logged_in', "0");
mormont('send', 'pageview');
mormont('trackClicks', ['article']);
}
function runMormont() {
var s = document.createElement('script');
s.type="text/javascript";
s.async = true;
s.onload = function() { triggerMormont() };
s.src="https://cdn.gamer-network.net/2019/mormont/v2.25.0/mormont.js";
document.getElementsByTagName('head')[0].appendChild(s);
}
function runRecaptcha() {
var s = document.createElement('script');
s.type="text/javascript";
s.async = true;
s.src="https://www.google.com/recaptcha/api.js";
document.getElementsByTagName('head')[0].appendChild(s);
}
function runSkimlinks() {
var s = document.createElement('script');
s.type="text/javascript";
s.async = true;
s.src="https://s.skimresources.com/js/87431X1540266.skimlinks.js";
document.getElementsByTagName('head')[0].appendChild(s);
}
function runSourcepoint() {
var _sp_=function(n){function t(e){if(o[e])return o[e].exports;var r=o[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};return t.m=n,t.c=o,t.i=function(n){return n},t.d=function(n,o,e){t.o(n,o)||Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:e})},t.n=function(n){var o=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(o,"a",o),o},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=2)}([function(n,t){function o(n,t){e&&console[n].apply(console,["[bootstrap]"].concat(Array.prototype.slice.call(t)))}var e=!1;n.exports={debug:function(){o("debug",arguments)},info:function(){o("info",arguments)},time:function(){o("time",arguments)},warn:function(){o("warn",arguments)},error:function(){o("error",arguments)},useDefaults:function(){e=!0},DEBUG:1}},function(n,t,o){"use strict";function e(){D||(D=!0,z=h.config=h.config||{},u(),N=z.bootstrap&&z.bootstrap.contentControlCallback||z.content_control_callback,B=z.accountId||z.account_id||z.client_id||window.sp_cid,G=z.beacon&&z.beacon.contentControlEndpoint||z.content_control_beacon_endpoint||v.a,z.debug_level&&"OFF"!==z.debug_level.toString().toUpperCase()||z.debug&&z.debug.level&&"OFF"!==z.debug.level.toString().toUpperCase()?F=!0:window.location.search&&null!=window.location.search.match(/_sp_debug_level=(?!off|OFF)/)&&(F=!0),F&&m.useDefaults({defaultLevel:m.DEBUG}))}function r(n,t,e){function r(o,e){var r=new Image;r.src="https://"+G+"/cct?v="+encodeURIComponent(v.b)+"&ct="+_+"&cid="+encodeURIComponent(B)+"&l="+encodeURIComponent(n.toString())+"&rc="+encodeURIComponent(t)+"&d0="+encodeURIComponent(i)+(o?"&d1="+encodeURIComponent(o):"")+(null==e?"":"&d2="+encodeURIComponent(e)),g.info("sending beacon: "+r.src),c&&c()}var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments[4],c=arguments[5];if(a){var d=e.lastIndexOf("."),s=e.lastIndexOf("https://www.usgamer.net/"),u=-1===d||s>d?e+".png":e.substring(0,d)+".png",l=new Image;l.addEventListener("load",function(){r("1",u)}),l.addEventListener("error",function(){o.i(f.a)(u,function(n,t,o){r("0",u+"::"+o)})}),l.src=u}else r()}function i(n,t,o,e){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=function(){i(n,t,o,e,r,!0)};n(t,a?o:c,e,r)}function a(n,t,o,e){function r(o,r){t(o,n,r,e.enableImageLoad)}function i(t,r){o(t,n,r,e.enableImageLoad),e.onError&&e.onError(r)}var a=document.createElement("script");a.src=n,a.onload=function(){e.onLoad&&e.onLoad()},a.onerror=function(){function t(n){return o.indexOf(n)>-1}var o=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase();t("mobi")||t("ipad")||t("android")||t("iphone")?i(x):t("exabot")?i(U):t("bingbot")||t("bingpreview")?i(S):t("googlebot")||t("adsbot-google")||t("mediapartners-google")?i(E):t("googleweblight")?i(O):window.location.host===w?i(I):window.location.host.indexOf(b)>-1?i(j):t("msie 10")||t("msie 9")||t("msie 8")?i(k):c(n,r,i)},document.head.appendChild(a),document.querySelector('script[src="'+n+'"]')||-1!==window.location.host.indexOf(b)||(g.info("Script not present"),r(C,n))}function c(n,t,e){o.i(f.a)(n,function(o,r,i,a){(o||r?t:e)(a,n+"::"+i)})}function d(n,t,o,e){if(q)return void s(R+"::"+n,o);r(L,n,t,o,e,function(){if(N){if(F){g.error("bootstrap locking",L,n,t,o,e);debugger}setTimeout(function(){N()},250)}})}function s(n,t,o,e){r(y,n,t,o,e)}function u(){h._networkListenerData||(h._networkListenerData=o.i(p.a)())}function l(n,t){e(),g.info("bootstrap called with",n,t),i(a,n,d,s,t)}Object.defineProperty(t,"__esModule",{value:!0});var f=o(4),p=o(5),v=o(3),g=o(0),m=void 0;m=o(0);var w=["w","e","b","c","a","c","h","e",".","g","o","o","g","l","e","u","s","e","r","c","o","n","t","e","n","t",".","c","o","m"].join(""),b=["o","p","t","i","m","i","z","e","l","y","p","r","e","v","i","e","w",".","c","o","m"].join(""),h=window._sp_||{},_=1,y=0,L=1,C="s",x="m",E="g",I="gw",O="gl",k="i",S="b",U="e",R="n",j="o",D=!1,q=!1,F=!1,z=void 0,N=void 0,B=void 0,G=void 0;window.addEventListener("beforeunload",function(){q=!0}),window._sp_=h,h.setupNetworkListeners=u,h.bootstrap=l,window.spBootstrap=l,t["default"]=h},function(n,t,o){o(0);n.exports=o(1)["default"]},function(n,t,o){"use strict";function e(n){return n.join("")}o.d(t,"b",function(){return r}),o.d(t,"a",function(){return i});var r=(o(0),"2.0.1056"),i=(e(["w","w","w",".","s","u","m","m","e","r","h","a","m","s","t","e","r",".","c","o","m"]),e(["w","w","w",".","r","o","o","s","t","e","r","f","i","r","e","w","o","r","k",".","c","o","m"]));e(["https://www.usgamer.net/","https://www.usgamer.net/","f","s","m","1","0","1","9",".","g","l","o","b","a","l",".","s","s","l",".","f","a","s","t","l","y",".","n","e","t","https://www.usgamer.net/","f","s","m","https://www.usgamer.net/","d","s"]),e(["h","t","t","p","s",":","https://www.usgamer.net/","https://www.usgamer.net/","d","2","z","v","5","r","k","i","i","4","6","m","i","q",".","c","l","o","u","d","f","r","o","n","t",".","n","e","t","https://www.usgamer.net/","0","https://www.usgamer.net/","2",".","0",".","1","0","5","6","https://www.usgamer.net/","r","e","c","o","v","e","r","y","_","d","f","p","_","i","n","t","e","r","n","a","l","-","v","2",".","0",".","1","0","5","6",".","j","s"]),e(["h","t","t","p","s",":","https://www.usgamer.net/","https://www.usgamer.net/","d","2","z","v","5","r","k","i","i","4","6","m","i","q",".","c","l","o","u","d","f","r","o","n","t",".","n","e","t","https://www.usgamer.net/","0","https://www.usgamer.net/","2",".","0",".","1","0","5","6","https://www.usgamer.net/","r","e","c","o","v","e","r","y","_","l","i","b","_","a","p","i","_","i","f","r","a","m","e","-","v","2",".","0",".","1","0","5","6",".","h","t","m","l"]),e(["h","t","t","p","s",":","https://www.usgamer.net/","https://www.usgamer.net/","d","2","z","v","5","r","k","i","i","4","6","m","i","q",".","c","l","o","u","d","f","r","o","n","t",".","n","e","t","https://www.usgamer.net/","0","https://www.usgamer.net/","2",".","0",".","1","0","5","6","https://www.usgamer.net/","r","e","c","o","v","e","r","y","_","l","i","b","_","r","i","d","_","i","f","r","a","m","e","-","v","2",".","0",".","1","0","5","6",".","h","t","m","l"])},function(n,t,o){"use strict";function e(n,t){function o(n){try{return n&&n.timeStamp?n.timeStamp:window.performance.now()}catch(n){return Date.now()}}var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.navigator,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=document.createElement("a");if(p.href=n,"https:"===e.protocol&&p.protocol!==e.protocol)return r.error("protocol mismatch in https environment, standing down"),void t(!1,!1,p.protocol,s);var v=new XMLHttpRequest,g=f.withCredentials;null!=g&&(v.withCredentials=g);try{v.open(f.method||"GET",n)}catch(n){return void t(!0,!1,n.toString(),c,v)}if(null!=f.headers){var m=f.headers;Object.keys(m).forEach(function(n){v.setRequestHeader(n,m[n])})}var w=void 0,b=void 0;v.onloadstart=function(n){w=o(n)},v.on
statechange=function(n){if(4===this.readyState){b=o(n)-w;var e=0===this.status&&!1!==l.onLine,r="2"===this.status.toString()[0],c=void 0;return c=r?a:!1===l.onLine?u:i,void t(e,r,this.status+"::"+b,c,v)}};try{v.send(f.body)}catch(n){return void t(!0,!1,n.toString(),d,v)}}t.a=e;var r=o(0),i="n",a="nx",c="xo",d="xs",s="p",u="of"},function(n,t,o){"use strict";function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[],o=[],e=r.bind(null,t),i=r.bind(null,o);return n.addEventListener("load",e,!0),n.addEventListener("error",i,!0),{load:{events:t,listener:e},error:{events:o,listener:i}}}function r(n,t){if(t.target){var o="string"==typeof t.target.tagName?t.target.tagName.toLowerCase():"",e="string"==typeof t.target.src?t.target.src:"";"iframe"!==o&&n.push({tagName:o,src:e})}}t.a=e;o(0)}]);
//# sourceMappingURL=https://s3.amazonaws.com/d3jlsadfjkuern/2.0.1056/Ym9vdHN0cmFwLmpz.map
window ._sp_ = window ._sp_ || {};
window ._sp_.config = window ._sp_.config || {};
window ._sp_.config.account_id = 347;
window ._sp_.config.content_control_callback = function () {
//console.log( 'CONTENT LOCK' );
};
window ._sp_.config.mms_domain = 'usgamer-us.usgamer.net' ;
window ._sp_.mms = window ._sp_.mms || {};
window ._sp_.mms.cmd = window ._sp_.mms.cmd || [];
window ._sp_.config.mms_client_data_callback = function (o) {};
window._sp_.config.fsm_endpoint = "//usg-p2.usgamer.net";
window._sp_.config.enable_fsm_detection = true;
window._sp_.config.enable_fsm_network_detection = true;
window ._sp_.mms.cmd.push( function () {
window ._sp_.mms.setTargeting( "logged-in" , "false" );
window ._sp_.mms.setTargeting( "show-ads" , "true" );
});
window ._sp_.mms.cmd.push( function () {
window ._sp_.mms.startMsg();
});
window ._sp_.bootstrap( '/static/scripts/musgamer-fsm.js' );
window ._sp_.config.mms_choice_selected_callback = function (choiceID) {
};
window ._sp_.config.mms_client_data_callback = function (dataObject) {
};
}
function runFacebookPixel() {
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '686233492142124');
fbq('track', 'PageView');
}
const frames = window.frames;
for (let i = 0; i < frames.length; i++) {
frames[i].stop();
}
function sandboxIframes() {
const iframes = jQuery('iframe[src]');
jQuery.each(iframes, function() {
const iframe = jQuery(this);
// Youtube iframes are exempt from being sandboxed
// as long as we swap them for the Privacy Enhanced player
if(iframe.attr('src').match(/youtube(-nocookie)?.com/embed/i)) {
iframe.attr('src', iframe.attr('src').replace('youtube.com', 'youtube-nocookie.com'));
} else {
iframe.attr('data-src', iframe.attr('src'));
iframe.attr('alt', 'Please accept cookies to see this iframe.');
iframe.removeAttr('src');
}
});
}
function sandboxScripts() {
const scripts = jQuery('script[src]:not(.ignore-script)');
jQuery.each(scripts, function() {
const script = jQuery(this);
script.attr('type', 'text/plain');
script.attr('data-src', script.attr('src'));
script.removeAttr('src');
});
}
function runIframes() {
const iframes = jQuery('iframe[data-src]');
jQuery.each(iframes, function() {
const iframe = jQuery(this);
iframe.attr('src', iframe.attr('data-src'));
iframe.removeAttr('alt');
iframe.removeAttr('data-src');
});
}
function runScripts() {
const scripts = jQuery('script[data-src]:not(.ignore-script)');
jQuery.each(scripts, function() {
const script = jQuery(this);
script.attr('src', script.attr('data-src'));
script.attr('type', 'text/javascript');
script.removeAttr('alt');
script.removeAttr('data-src');
});
}
Source link