User:Inquisitor Sasha/blockMikal.js

From RationalWiki
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
var bmRef = document.getElementById('pt-logout');
var bmParent = bmRef.parentNode;
var bmNewLink = document.createElement('li');
 
bmNewLink.id = 'block-mikal-link';
bmNewLink.innerHTML = '<a style="font-size: 9pt; border: 1px solid #777777; background: #CCCCCC; padding-left: 10px; padding-right: 10px; padding-top: 2px; padding-bottom: 2px;" href="http://rationalwiki.org/wiki/Special:Block/Mikal"><b>Block Mikal</b></a>';
 
bmParent.insertBefore(bmNewLink, bmRef);