Page MenuHomePhabricator

Custom style sheet to change change font color to red and font face to bold
Closed, ResolvedPublic

Description

Here are steps to do so:

Note: Remember that the effect caused by your code in the common.js file will only be visible to you.

Event Timeline

Tuxology created this task.Dec 9 2017, 3:14 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 9 2017, 3:14 AM
Tuxology renamed this task from [User Script] Change font color to red and font face to bold to User script to change change font color to red and font face to bold.Dec 9 2017, 3:17 AM
Tuxology updated the task description. (Show Details)
Tuxology edited subscribers, added: srishakatux; removed: Aklapper.

to change font color you must add changes to https://en.wikipedia.org/wiki/Special:MyPage/common.css (.css not .js)

.mw-body-content {
	color: red !important;
	font-weight: bold !important;
}

to change font color you must add changes to https://en.wikipedia.org/wiki/Special:MyPage/common.css (.css not .js)

.mw-body-content {
	color: red !important;
	font-weight: bold !important;
}

Thanks! @Anooprao I was thinking about something like this document.body.style.color = "red" in JS and see if it works. But I guess teaching about common.css is a valid exercise in itself.

Tuxology renamed this task from User script to change change font color to red and font face to bold to Custom style sheet to change change font color to red and font face to bold.Dec 9 2017, 4:49 PM
Tuxology updated the task description. (Show Details)

Here is the documentation of my work on writing a user script to change the font color of an article to red and its font face to bold: https://www.mediawiki.org/wiki/ChickTech_High_School_Kickoff_2017/Tasks#Write_a_user_script_to_change_the_font_color_to_red_and_the_font_face_to_bold

srishakatux closed this task as Resolved.Dec 10 2017, 10:14 PM
srishakatux claimed this task.
srishakatux awarded a token.