m (Jr Mime moved page Global Discussions JS Importer to Global Discussions JS & CSS Importer without leaving a redirect) |
mNo edit summary |
||
Line 10: | Line 10: | ||
| Languages = {{l|en}} |
| Languages = {{l|en}} |
||
}} |
}} |
||
− | '''Global Discussions JS Importer''' is a developer Chrome Extension that lets users import custom JavaScript into any Discussions. |
+ | '''Global Discussions JS & CSS Importer''' is a developer Chrome Extension that lets users import custom JavaScript and CSS into any Discussions. |
== Usage == |
== Usage == |
||
− | # Download the files from the ZIP file from [[github:JrMime/FANDOM-d-import/releases/tag/1. |
+ | # Download the files from the ZIP file from [[github:JrMime/FANDOM-d-import/releases/tag/1.1.0|the latest release]] |
# Unzip the downloaded ZIP file |
# Unzip the downloaded ZIP file |
||
# Place the content in a place where you won't accidentally move or delete it |
# Place the content in a place where you won't accidentally move or delete it |
||
Line 21: | Line 21: | ||
== Script Locations == |
== Script Locations == |
||
+ | === JavaScript === |
||
By default, the script will search for [[w:Special:MyPage/globalDiscussions.javascript]], but it is possible to change it. All .javascript pages have been locked to only the owner on Community Central. |
By default, the script will search for [[w:Special:MyPage/globalDiscussions.javascript]], but it is possible to change it. All .javascript pages have been locked to only the owner on Community Central. |
||
# Click the FANDOM JS button at the top right and select Options |
# Click the FANDOM JS button at the top right and select Options |
||
Line 30: | Line 31: | ||
### URL -- Needs to be in this exact format, but can be http or https: <code><nowiki>https://community.wikia.com</nowiki></code> |
### URL -- Needs to be in this exact format, but can be http or https: <code><nowiki>https://community.wikia.com</nowiki></code> |
||
### Page -- Specified page, such as <code>Special:MyPage/discussionsGlobal.javascript</code> |
### Page -- Specified page, such as <code>Special:MyPage/discussionsGlobal.javascript</code> |
||
+ | |||
+ | === CSS === |
||
+ | By default, the script will search for [[w:Special:MyPage/globalDiscussions.css]]. |
||
+ | # Click the FANDOM JS button at the top right and select Options |
||
+ | # Import Styles |
||
+ | ## cc - globalDiscussions.css -- [[w:Special:MyPage/globalDiscussions.css]] |
||
+ | ## Your link of choice -- You can select a link from any other Wiki (external or internal to Wikia) |
||
+ | ### URL -- Needs to be in this exact format, but can be http or https: <code><nowiki>https://community.wikia.com</nowiki></code> |
||
+ | ### Page -- Specified page, such as <code>Special:MyPage/discussionsGlobal.css</code> |
||
== Frequently Asked Questions == |
== Frequently Asked Questions == |
Revision as of 22:18, 22 June 2018
Global Discussions JS & CSS Importer is a developer Chrome Extension that lets users import custom JavaScript and CSS into any Discussions.
Usage
- Download the files from the ZIP file from the latest release
- Unzip the downloaded ZIP file
- Place the content in a place where you won't accidentally move or delete it
- In Google Chrome, Go to chrome://extensions
- Enable Developer Mode in the top right corner
- Click LOAD UNPACKED and select the folder containing the files
Script Locations
JavaScript
By default, the script will search for w:Special:MyPage/globalDiscussions.javascript, but it is possible to change it. All .javascript pages have been locked to only the owner on Community Central.
- Click the FANDOM JS button at the top right and select Options
- Import Styles
- cc - globalDiscussions.javascript -- w:Special:MyPage/globalDiscussions.javascript
- cc - globalDiscussions.css -- w:Special:MyPage/globalDiscussions.css
- cc - common -- w:Special:MyPage/common.js
- Your link of choice -- You can select a link from any other Wiki (external or internal to Wikia)
- URL -- Needs to be in this exact format, but can be http or https:
https://community.wikia.com
- Page -- Specified page, such as
Special:MyPage/discussionsGlobal.javascript
- URL -- Needs to be in this exact format, but can be http or https:
CSS
By default, the script will search for w:Special:MyPage/globalDiscussions.css.
- Click the FANDOM JS button at the top right and select Options
- Import Styles
- cc - globalDiscussions.css -- w:Special:MyPage/globalDiscussions.css
- Your link of choice -- You can select a link from any other Wiki (external or internal to Wikia)
- URL -- Needs to be in this exact format, but can be http or https:
https://community.wikia.com
- Page -- Specified page, such as
Special:MyPage/discussionsGlobal.css
- URL -- Needs to be in this exact format, but can be http or https:
Frequently Asked Questions
- Help!!! My scripts won't import!
- Because Discussions isn't quite MediaWiki, basic functionalities won't work. JQuery does work, but that's about it. To import scripts, you can use
$.getScript("https://community.wikia.com/index.php?title=Special:MyPage/discussionsKiller.javascript&action=raw&ctype=text/javascript");
- Is there jQuery in Discussions?
- Yes, there is!
- Can anybody edit .javascript pages?
- On Community Central, .javascript pages have been locked to only the owner by AbuseFilter.
- Is this available in other browsers?
- At this moment, no.