Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Tamo Durnynas
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Pagerins tamo dienyną.
  6. // @author Vytukas
  7. // @include https://dienynas.tamo.lt*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. /* NUSTATYMAI */
  12.  
  13. const CUSTOM_NAME = "Vilniaus Šūdų Progimnazija";
  14. const REMOVE_TAMO_ISMANIEMS = true;
  15. const REMOVE_TAMO_SCORE = true;
  16. const REMOVE_COOKIE_MESSAGE = true;
  17.  
  18. /* NUSTATYMŲ GALAS */
  19.  
  20. // Nustatyti pavadinimą
  21. $("span[style='vertical-align:middle;display:table-cell;height:40px;font-size:16px;font-weight:600;padding-left:15px;']").text(CUSTOM_NAME);
  22.  
  23. // Ištrinti reklamas
  24. $("li[data-name='vaiko.draudimas']").remove();
  25. $("a[href='/Ad/Kalba']").remove();
  26. $(".col_left").remove();
  27.  
  28. // Padaryti, kad prisijungimas būtų viduryje
  29. $(".col_right").css({"margin": "auto", "float": "none"});
  30.  
  31. // Ištrinti darbo laikmatį
  32. $("div[style='display:inline-block;float:right;']").remove();
  33.  
  34. // Jei nustatyta, ištrinti tamo išmaniems iš meniu
  35. if(REMOVE_TAMO_ISMANIEMS) {
  36. $("li[data-name='tamo.ismaniems']").remove();
  37. }
  38. // Jeigu tamo išmaniems paslauga nėra aktyvi, ištrinti analitikas
  39. $("li[data-name='analitika_demo']").remove();
  40.  
  41. // Jeigu nustatyta, ištrinti slapukų pranešimą
  42. if(REMOVE_COOKIE_MESSAGE) {
  43. function removeDialog() {
  44. $("div[role='alertdialog']").remove();
  45. }
  46. setTimeout(removeDialog, 100);
  47. setTimeout(removeDialog, 200);
  48. setTimeout(removeDialog, 500);
  49. setTimeout(removeDialog, 1000);
  50. }
  51.  
  52. // Jeigu nustatyta, ištrinti tamo taškus
  53. if(REMOVE_TAMO_SCORE) {
  54. $("div[style='display:inline-table;height:100%;']").eq(0).remove();
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement