Web defacing

From Interaction Station Wiki
Revision as of 07:58, 24 April 2024 by Boris (talk | contribs)
Jump to navigation Jump to search

The browser mediates the online world of the internet in the same way that a window mediates the view of the physical world. Adding a custom extension to this daily equipment provides a valuable opportunity for creative play and disruptions at both the system- and content levels. Releasing these extensions as tools can be a form of critical and contextual creative practice.

To reload your browser extension visit this 'about:debugging#/runtime/this-firefox' page in FireFox.

Snippets

HTML

CSS

JavaScript

Grabbing an element

const titleElement = document.getElementById("my-title");

Editing the content

titleElement.innerHTML = "🙃";

Creating an element

const newListItem = document.createElement("li");
// Set the content
newListItem.innerHTML = "Add an element using JavaScript";

Insert an element

// Grab the element that we want to insert the new element into.
const list = document.getElementById("my-list");
// Append the new element
list.appendChild(newListItem);

Resources

Browser extension template