Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TES Chat Topic
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Chat topic links
- // @author
- // @match wikia.com
- // @grant none
- // @include http://elderscrolls.wikia.com/wiki/Special:Chat
- // @include wikia.com
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- var chatTopic = '<a href="/wiki/Special:Log/chatban" target="_blank" title="Chat ban log" style="position:relative;text-decoration:underline;">Welcome to</a> <a href="/wiki/Special:Log/block" target="_blank" title="block log" style="position:relative;text-decoration:underline;">The Elder</a> <a href="/wiki/Special:Log/newusers" target="_blank" title="Account Creation Log" style="position:relative;text-decoration:underline;">Scrolls Chat</a><br /><a href="/wiki/The_Elder_Scrolls_Wiki:Chat#Grounds_for_blocking" target="_blank" title="Chat Guidelines" style="position:relative;text-decoration:underline;">Chat rules</a> • <a href="/wiki/The_Elder_Scrolls_Wiki:Staff" target="_blank" title="List of Staff" style="position:relative;text-decoration:underline;">Moderators</a> • <a href="http://www.wikia.com/Terms_of_Use" title="Wikia Terms of Use" target="_blank" style="position:relative;text-decoration:underline;">Terms of Use</a>';
- $(function() {
- $('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align:center;position:absolute;width:80%;z-index:0;font-size: 13px;color:#3A3A3A;font-weight:bold;line-height:1.6;margin-left:110px;">'+chatTopic+'</div>')
- .find('a').attr('style','position:relative;text-decoration:none;');
- });
- $('#ChatHeader .public.wordmark div:not(:first-child)').remove();
- var users = ["Timeoin","Flightmare","Atvelonis", "Emperor Jarjarkine"];
- if(jQuery.inArray(wgUserName,users) > -1) {
- $(".ChatHeader").addClass("admin");
- }
- })();
Add Comment
Please, Sign In to add comment