Commit b5e94899 authored by Tim Krief's avatar Tim Krief

Added manifesto codes to the script files and improved the makefile.

parent bbe7a822
......@@ -178,7 +178,9 @@ Colors and graphics must not be used to create some sort of pavlovian conditioni
<details>
<summary>Force theater mode</summary>
> No existing rule from the [manifesto](MANIFESTO.md) has been defined for this change.
> « The main content of the page should stay the only focus
The user should see the main content first and foremost when landing on a page. »
> *From the [manifesto](MANIFESTO.md).*
> ___
> This change is implemented in [scripts/youtube.js](scripts/youtube.js) at [line 1](scripts/youtube.js#L1).
......@@ -186,7 +188,9 @@ Colors and graphics must not be used to create some sort of pavlovian conditioni
<details>
<summary>Replace the subscription list from the side menu by a link to the subscription manager</summary>
> No existing rule from the [manifesto](MANIFESTO.md) has been defined for this change.
> « Shortcuts must link to related content or actions that are hard to access.
There is no need for shortcuts that invite to use services already easily accessible and/or not obviously linked to the main content. »
> *From the [manifesto](MANIFESTO.md).*
> ___
> This change is implemented in [scripts/youtube.js](scripts/youtube.js) at [line 11](scripts/youtube.js#L11).
......@@ -194,7 +198,9 @@ Colors and graphics must not be used to create some sort of pavlovian conditioni
<details>
<summary>Remove the trending page</summary>
> No existing rule from the [manifesto](MANIFESTO.md) has been defined for this change.
> « Any curation process should be made in the user's interest.
A platform curation process should only help the user find interesting content. This process, if not properly disclosed, signals that a conflict of interest might be at play. »
> *From the [manifesto](MANIFESTO.md).*
> ___
> This change is implemented in [scripts/background/youtube.js](scripts/background/youtube.js) at [line 2](scripts/background/youtube.js#L2).
......@@ -202,7 +208,9 @@ Colors and graphics must not be used to create some sort of pavlovian conditioni
<details>
<summary>Remove autoplay "feature"</summary>
> No existing rule from the [manifesto](MANIFESTO.md) has been defined for this change.
> « Interactive elements should remain informative and unbiased.
Manipulative interactive elements prevent the user from making their own choices. »
> *From the [manifesto](MANIFESTO.md).*
> ___
> This change is implemented in [scripts/background/youtube.js](scripts/background/youtube.js) at [line 14](scripts/background/youtube.js#L14).
......@@ -292,7 +300,9 @@ Manipulative interactive elements prevent the user from making their own choices
<details>
<summary>Remove the install messenger mobile page</summary>
> No existing rule from the [manifesto](MANIFESTO.md) has been defined for this change.
> « Interactive elements should remain informative and unbiased.
Manipulative interactive elements prevent the user from making their own choices. »
> *From the [manifesto](MANIFESTO.md).*
> ___
> This change is implemented in [scripts/background/facebook.js](scripts/background/facebook.js) at [line 2](scripts/background/facebook.js#L2).
......
......@@ -3,7 +3,7 @@ all: manifest.json clean zip
zip:
zip -r ./minimal.zip LICENSE README.md CHANGES.md manifest.json icons scripts styles
manifest.json: preprocessing/preprocess data/manifestTemplate.txt data/supportedWebsites.csv data/version
manifest.json: preprocessing/preprocess $(shell find data -type f) $(shell find scripts -type f) $(shell find styles -type f)
./preprocessing/preprocess
.PHONY: ppmake
......
/* - Remove the install messenger mobile page */
/* - Remove the install messenger mobile page - U1 */
browser.webRequest.onBeforeRequest.addListener(
function(requestDetails){
return {cancel: true};
......
/* - Remove the trending page */
/* - Remove the trending page - P2 */
browser.webRequest.onBeforeRequest.addListener(
function(requestDetails){
return {redirectUrl: "https://www.youtube.com/feed/subscriptions"};
......@@ -11,7 +11,7 @@ function(requestDetails){
["blocking"]
);
/* - Remove autoplay "feature" */
/* - Remove autoplay "feature" - U1 */
browser.webRequest.onBeforeRequest.addListener(
function(requestDetails){
return {cancel: true};
......
// Link the messaging icon in the navbar to the message page.
/* Link the messaging icon in the navbar to the message page. - U2 */
window.addEventListener("load", function(){
document.getElementById("u_0_d").addEventListener("click", function(){window.location = "https://www.facebook.com/messages/"});
});
/* - Force theater mode */
/* - Force theater mode - C1 */
function forceTheaterMode(){
let theaterModeButton = document.getElementsByClassName('ytp-size-button')[0];
if(theaterModeButton.getElementsByTagName("path")[0].getAttribute("d") === "m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z"){
......@@ -8,7 +8,7 @@ function forceTheaterMode(){
setInterval(forceTheaterMode, 500);
/* - Replace the subscription list from the side menu by a link to the subscription manager */
/* - Replace the subscription list from the side menu by a link to the subscription manager - U3 */
function replaceSubscriptionManager(){
if(document.getElementById("avatar-btn") || document.getElementById("yt-masthead-account-picker")){
let subGuide =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment