IMVU Lock List CSS Addon

try to take over the world!

当前为 2024-04-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name IMVU Lock List CSS Addon
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-04-05-2137
  5. // @description try to take over the world!
  6. // @author Evehne
  7. // @match https://*.imvu.com/catalog/web_blocked_list.php
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=imvu.com
  9. // @grant none
  10. // @run-at document-idle
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. var e = document.querySelector('td .blockedlistbox');
  17. e.innerHTML = e.innerHTML + `
  18. <style>
  19. body > table {
  20. margin-top: 150px;
  21. margin-bottom: 150px;
  22. }
  23. #mininav_body{
  24. position: fixed;
  25. width: 100%;
  26. left: 0px;
  27. top: 0px;
  28. z-index: 10000 !important;
  29. background: white;
  30. }
  31. .blockedlistbox {
  32. display: flex;
  33. width: 98%;
  34. flex-direction: row;
  35. justify-items: center;
  36. text-align: center;
  37. background: none;
  38. }
  39. .blockedlistbox > tbody > tr:has(.infoBox) {
  40. display: inline-flex;
  41. width: 350px;
  42. margin-bottom: 3px;
  43. }
  44. .infoBox table[background^="/catalog"]{
  45. background: none;
  46. }
  47. .infoBox:has(font[color="#bb0000"]) {
  48. opacity: 0.7;
  49. background: #e3aeae;
  50. }
  51. .infoBox:has(font[color="#00bb00"]) {
  52. opacity: 1.0;
  53. background: #cff1b9;
  54. }
  55. .blockedlistbox > tbody > tr:has(.infoBoxContentstrans){
  56. display: block;
  57. position: fixed;
  58. width: 100%;
  59. left: 0px;
  60. top: 34px;
  61. z-index: 10100 !important;
  62. background: #333;
  63. border: 1px solid #333;
  64. }
  65. .blockedlistbox > tbody > tr > td:has(.infoBoxContentstrans){
  66. display: inline-block;
  67. width: 100%;
  68. text-align: center;
  69. }
  70. </style>
  71. `;
  72. var els = document.querySelectorAll('.blockedlistbox > tbody > tr');
  73. var count = els.length;
  74. els[count-1].parentNode.insertBefore(els[count-1], els[0]);
  75. })();