Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Terraria Chat Topic
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Chat topic links
- // @author
- // @match wikia.com
- // @grant none
- // @include http://terraria.wikia.com/wiki/Special:Chat
- // @include wikia.com
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- var chatTopic = '<br />• <a href="/wiki/TW:CHAT" target="_blank" title="Chat Guidelines" style="position:relative;text-decoration:underline;color:#9400D3;text-shadow:0px 0px 2px black;">Chat Guidelines</a> • <a href="http://www.wikia.com/Terms_of_Use" target="_blank" title="Terms of Use" style="position:relative;text-decoration:underline;">Terms of Use</a> • <a href="/wiki/Special:Log/chatban" title="Chat Ban Log" target="_blank" style="position:relative;text-decoration:underline;">Chat Ban Log</a> • <br /> • <a href="/wiki/User_talk:Squazzil" title="Squazzil: Talk Page" target="_blank" style="position:relative;text-decoration:underline;">Squazzil: Talk Page</a> • <a href="/wiki/w:c:dev:ChatTags%23Usage" target="_blank" title="Dev wiki Chat Tags help" style="position:relative;text-decoration:underline;">Chat Tags Help</a> • <a href="/wiki/Special:Log/block" title="Block Log" target="_blank" style="position:relative;text-decoration:underline;">Block Log</a> •';
- $(function() {
- $('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align:center;position:absolute;width:80%;z-index:0;font-size: 11px;line-height:1.0;margin-left:110px;">'+chatTopic+'</div>')
- .find('a').attr('style','position:relative;text-decoration:none;');
- });
- })();
Add Comment
Please, Sign In to add comment