Difference between revisions of "Client Abuse"

From Screeps Wiki
Jump to navigation Jump to search
(Created page with "{{stub}} Client Abuse is taking advantage of <code>console.log()</code> accepting HTML, especially <code><script></code> and <code><style></code> tags, to inject code into th...")
 
Line 2: Line 2:
   
 
Client Abuse is taking advantage of <code>console.log()</code> accepting HTML, especially <code><script></code> and <code><style></code> tags, to inject code into the client. This is done for the purpose of adding/editing client functionality, modifying how the client displays the game data, or performing tasks that interact with the game and external sites. The code will only function while a client is open.
 
Client Abuse is taking advantage of <code>console.log()</code> accepting HTML, especially <code><script></code> and <code><style></code> tags, to inject code into the client. This is done for the purpose of adding/editing client functionality, modifying how the client displays the game data, or performing tasks that interact with the game and external sites. The code will only function while a client is open.
  +
  +
== History ==
  +
  +
Approximately September 2016, an unknown player identified to the public that <code>console.log()</code> would accept HTML code. His code used <code>&lt;span&gt;</code> tags with a style attribute to change the output's color. Mild style changes to output were then provided, and that spun out the Logging community, which started making elaborate HTML outputs into the console, showing stats from in-game, or allowing you to perform tasks from the console. One of the first instances of purely Client Abuse code was posted around late November or early December by @stybbe, which provided a global function that output the text to the console and read it aloud, using an API provided by [[https://responsivevoice.org ResponsiveVoice]]. Since then, Client Abuse snippets have been released providing an in-client grafana agent for screepspl.us, saving files to your computer via the client, injecting the [[alliances|League of Automated Nations]] tampermonkey script into the client, saving the [http://www.leagueofautomatednations.com/alliances.js alliances.js] to a location in Memory, and more.

Revision as of 00:59, 31 January 2017

This article is a stub. You can help Screeps Wiki by editing to add more information.

Client Abuse is taking advantage of console.log() accepting HTML, especially <script> and <style> tags, to inject code into the client. This is done for the purpose of adding/editing client functionality, modifying how the client displays the game data, or performing tasks that interact with the game and external sites. The code will only function while a client is open.

History

Approximately September 2016, an unknown player identified to the public that console.log() would accept HTML code. His code used <span> tags with a style attribute to change the output's color. Mild style changes to output were then provided, and that spun out the Logging community, which started making elaborate HTML outputs into the console, showing stats from in-game, or allowing you to perform tasks from the console. One of the first instances of purely Client Abuse code was posted around late November or early December by @stybbe, which provided a global function that output the text to the console and read it aloud, using an API provided by [ResponsiveVoice]. Since then, Client Abuse snippets have been released providing an in-client grafana agent for screepspl.us, saving files to your computer via the client, injecting the League of Automated Nations tampermonkey script into the client, saving the alliances.js to a location in Memory, and more.