Skip to content

Commit

Permalink
Add related guideline to each script
Browse files Browse the repository at this point in the history
  • Loading branch information
a13o committed Jul 14, 2018
1 parent a67bd93 commit ec4431e
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CODE_OF_ETHICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ Some netizens respond to this by installing Ad Blockers, which treat the symptom
> 👌 A Wikipedia entry about lightbulbs covers their invention, linking to Thomas Edison's entry.
1. Comment threads should be a shorter read than the material they're commenting on. Comment threads have incredibly low information density and quickly veer off topic. They will grow boundlessly and overshadow your main content.
2. Comment threads should be a shorter read than the material they're commenting on. Comment threads have incredibly low information density and quickly veer off topic. They will grow boundlessly and overshadow your main content.

> ❌ Dark-pattern: The best rated reply of a Hacker News thread has 100 sub-replies, which are all shown before the second best rated reply.
> ❌ Dark-pattern: The best rated reply to an entry on Hacker News has 100 sub-replies, which are all shown before the second best rated reply.
> 👌 The comments at the bottom of a Kotaku blog post are hidden by default until approved by a moderator.
### B. Visitors should make decisions free from social influence.

1. Do not publish vanity metrics about visitors or content. These may cause visitors to join a rat race or engage with content just to see what the fuss is about.
1. Do not publish vanity metrics about visitors or content. These may cause visitors to start comparing themselves or engage with content just to see what the fuss is about.

> ❌ Dark-pattern: A karma count is displayed in the site header at the top of every Reddit page.
> ❌ Dark-pattern: Twitter prominently displays a like count and a retweet count on every tweet.
> ❌ Dark-pattern: The Washington Post tells you how many comments are in a thread
> ❌ Dark-pattern: The Washington Post tells you how many comments are in a thread.
1 change: 1 addition & 0 deletions src/hacker-news/collapse-deep-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const COMMENT_COLLAPSE_DEPTH = 1;

/**
* Collapse all comments starting at a certain depth. 0-indexed
* @see A.2
* @type {Number} depth
*/
(function collapseDeepComments (depth) {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/collapse-low-quality-comments.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Collapse all comments HN has already deemed lower quality
* @see A.2
*/
(function collapseLowQualityComments () {
document.querySelectorAll('tr.athing.comtr').forEach((comment) => {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/remove-comment-count.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Remove the count from the comments link on each post
* @see B.1
*/
(function removeCommentCount () {
document.querySelectorAll('td.subtext > a:last-child').forEach((comments) => {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/remove-comment-karma.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Remove karma totals next to comments (typically seen next to your own comments when
* logged in)
* @see B.1
*/
(function removeCommentKarma () {
document.querySelectorAll('span[id^="score_"]').forEach((score) => {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/remove-post-karma.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Remove all the karma totals underneath each post
* @see B.1
*/
(function removePostKarma () {
document.querySelectorAll('td.subtext span.score').forEach((points) => {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/remove-profile-karma.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Remove karma count from user profiles
* @see B.1
*/
(function removeProfileKarma () {
document.querySelectorAll('td[valign="top"]').forEach((td) => {
Expand Down
1 change: 1 addition & 0 deletions src/hacker-news/remove-self-karma.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Remove the logged in user's karma from the page header
* @see B.1
*/
(function removeSelfKarma () {
const self = document.querySelector('a#me')
Expand Down

0 comments on commit ec4431e

Please sign in to comment.