Quora يۇقىرى دەرىجىلىك قىلىش

بەتتىكى مەلۇم ئېلېمېنتلارنى تار قىلىڭ، ئېلان چىقىرىۋېتىڭ

  1. // ==UserScript==
  2. // @name Quora Enhancement
  3. // @name:ar تحسين كويورا
  4. // @name:bg Подобрение на Quora
  5. // @name:cs Vylepšení Quora
  6. // @name:da Quora Forbedring
  7. // @name:de Quora Verbesserung
  8. // @name:el Βελτίωση του Quora
  9. // @name:en Quora Enhancement
  10. // @name:eo Plibonigo de Quora
  11. // @name:es Mejora de Quora
  12. // @name:fi Quora-parannus
  13. // @name:fr Amélioration de Quora
  14. // @name:fr-CA Amélioration de Quora
  15. // @name:he שיפור Quora
  16. // @name:hr Poboljšanje Quore
  17. // @name:hu Quora Fejlesztés
  18. // @name:id Peningkatan Quora
  19. // @name:it Miglioramento di Quora
  20. // @name:ja Quoraの拡張
  21. // @name:ka Quora-ს გაუმჯობესება
  22. // @name:ko Quora 개선
  23. // @name:nb Quora Forbedring
  24. // @name:nl Quora Verbetering
  25. // @name:pl Ulepszenie Quora
  26. // @name:pt-BR Aprimoramento do Quora
  27. // @name:ro Îmbunătățire Quora
  28. // @name:ru Улучшение Quora
  29. // @name:sk Vylepšenie Quora
  30. // @name:sr Побољшање Quora
  31. // @name:sv Quora Förbättring
  32. // @name:th การปรับปรุง Quora
  33. // @name:tr Quora Geliştirmesi
  34. // @name:ug Quora يۇقىرى دەرىجىلىك قىلىش
  35. // @name:uk Покращення Quora
  36. // @name:vi Nâng Cao Quora
  37. // @name:zh Quora增强
  38. // @name:zh-CN Quora增强
  39. // @name:zh-HK Quora增強
  40. // @name:zh-SG Quora增强
  41. // @name:zh-TW Quora增強
  42. // @description Make specific elements less wide on a page, remove Advertisement
  43. // @description:ar اجعل عناصر معينة أقل عرضًا على الصفحة، وقم بإزالة الإعلانات
  44. // @description:bg Направете определени елементи по-тесни на страницата, премахнете рекламата
  45. // @description:cs Zmenšete šířku určitých prvků na stránce, odstraňte reklamu
  46. // @description:da Gør specifikke elementer mindre brede på en side, fjern reklamer
  47. // @description:de Machen Sie bestimmte Elemente auf einer Seite schmaler, entfernen Sie Werbung
  48. // @description:el Κάντε συγκεκριμένα στοιχεία στενότερα σε μια σελίδα, καταργήστε τη διαφήμιση
  49. // @description:en Make specific elements less wide on a page, remove Advertisement
  50. // @description:eo Faru specifajn elementojn malpli largajn sur paĝo, forigu Reklamon
  51. // @description:es Haga que algunos elementos sean menos anchos en una página, elimine la publicidad
  52. // @description:fi Tee tietyistä elementeistä kapeampia sivulla, poista mainokset
  53. // @description:fr Réduisez la largeur de certains éléments sur une page, supprimez les publicités
  54. // @description:fr-CA Réduisez la largeur de certains éléments sur une page, supprimez les publicités
  55. // @description:he הפוך רכיבים מסוימים צרים יותר בדף, הסר פרסומות
  56. // @description:hr Napravite određene elemente užima na stranici, uklonite oglase
  57. // @description:hu Tegye az egyes elemeket keskenyebbé az oldalon, távolítsa el a hirdetéseket
  58. // @description:id Buat elemen tertentu lebih sempit di halaman, hapus Iklan
  59. // @description:it Rendere alcuni elementi meno larghi su una pagina, rimuovere la pubblicità
  60. // @description:ja ページ上の特定の要素を狭くし、広告を削除
  61. // @description:ka გახადეთ გარკვეული ელემენტები ნაკლებ განიერი გვერდზე, მოაშორეთ რეკლამა
  62. // @description:ko 페이지의 특정 요소를 덜 넓게 만들고, 광고 제거
  63. // @description:nb Gjør bestemte elementer mindre brede på en side, fjern reklame
  64. // @description:nl Maak specifieke elementen minder breed op een pagina, verwijder advertenties
  65. // @description:pl Zawęź określone elementy na stronie, usuń reklamy
  66. // @description:pt-BR Torne elementos específicos menos largos em uma página, remova anúncios
  67. // @description:ro Faceți anumite elemente mai puțin late pe o pagină, eliminați reclamele
  68. // @description:ru Сделайте определенные элементы менее широкими на странице, удалите рекламу
  69. // @description:sk Zmeňte šírku určitých prvkov na stránke, odstráňte reklamu
  70. // @description:sr Учините одређене елементе мање широким на страници, уклоните рекламе
  71. // @description:sv Gör specifika element smalare på en sida, ta bort annonser
  72. // @description:th ทำให้องค์ประกอบเฉพาะน้อยลงบนหน้า ลบโฆษณา
  73. // @description:tr Sayfadaki belirli öğeleri daha dar yapın, reklamları kaldırın
  74. // @description:ug بەتتىكى مەلۇم ئېلېمېنتلارنى تار قىلىڭ، ئېلان چىقىرىۋېتىڭ
  75. // @description:uk Зробіть певні елементи менш широкими на сторінці, видаліть рекламу
  76. // @description:vi Làm cho các phần tử cụ thể ít rộng hơn trên trang, loại bỏ Quảng cáo
  77. // @description:zh 使页面上的特定元素变窄,删除广告
  78. // @description:zh-CN 使页面上的特定元素变窄,删除广告
  79. // @description:zh-HK 使頁面上的特定元素變窄,刪除廣告
  80. // @description:zh-SG 使页面上的特定元素变窄,删除广告
  81. // @description:zh-TW 使頁面上的特定元素變窄,刪除廣告
  82. // @namespace http://tampermonkey.net/
  83. // @version 0.2.2
  84. // @author aspen138
  85. // @match *://www.quora.com/*
  86. // @icon https://qsf.cf2.quoracdn.net/-4-images.favicon-new.ico-26-07ecf7cd341b6919.ico
  87. // @grant none
  88. // @license MIT
  89. // ==/UserScript==
  90.  
  91. (function () {
  92. 'use strict';
  93.  
  94. // Function to adjust width and position with animation
  95. function adjustWidthAndPosition() {
  96. // Find elements by the class name and specific inline style
  97. const elements = document.querySelectorAll('.q-box[style*="width: 356px;"]');
  98.  
  99. // Loop through found elements and adjust width and position with animation
  100. elements.forEach(function (element) {
  101. element.style.transition = 'width 0.5s ease-in-out, right 0.5s ease-in-out'; // Animate width and right property
  102. element.style.width = '156px'; // Adjust width as desired
  103. element.style.position = 'relative'; // Set position to relative
  104. element.style.right = '0px'; // Move closer to the right, adjust as needed
  105. });
  106.  
  107. // Find elements by the class name and specific inline style
  108. const elements1 = document.querySelectorAll('.q-box[id="mainContent"]');
  109.  
  110. // Loop through found elements and adjust width and position with animation
  111. elements1.forEach(function (element) {
  112. element.style.transition = 'width 0.5s ease-in-out'; // Animate width property
  113. element.style.width = '956px'; // Adjust width as desired
  114. element.style.position = 'relative'; // Set position to relative
  115. // Animation for moving to the right is not necessary here as the original code was commented out
  116. });
  117.  
  118. }
  119.  
  120. // Run the adjustment function after the page loads
  121. window.addEventListener('load', adjustWidthAndPosition);
  122.  
  123.  
  124.  
  125. // ------------ Function to Remove Ads and Sponsored Elements ------------
  126.  
  127. // Function to remove ads and sponsored elements
  128. function removeAdsAndSponsored() {
  129. // Select ads by specific classes or IDs
  130. const ads = document.querySelectorAll('.q-box.spacing_log_question_page_ad, #bunwaeabjd');
  131.  
  132. ads.forEach(ad => {
  133. if (ad) ad.remove();
  134. });
  135.  
  136. // Select sponsored elements by their specific class
  137. const sponsoredElements = document.querySelectorAll('.dom_annotate_ad_image_ad');
  138.  
  139. sponsoredElements.forEach(elem => {
  140. if (elem) elem.remove();
  141. });
  142.  
  143. // Optionally, hide elements that indicate sponsorship without removing them
  144. // For example, if there's a "Sponsored" label you want to hide:
  145. const sponsoredLabels = document.querySelectorAll('.sponsored-label-class'); // Replace with actual class
  146. sponsoredLabels.forEach(label => {
  147. if (label) label.style.display = 'none';
  148. });
  149. }
  150.  
  151. // Run the removeAdsAndSponsored function on page load
  152. window.addEventListener('load', removeAdsAndSponsored);
  153.  
  154. // Optionally, run the removeAdsAndSponsored function periodically to catch and remove ads/sponsored content that load asynchronously
  155. setInterval(removeAdsAndSponsored, 3000); // Checks and removes ads/sponsored content every 3 seconds
  156.  
  157. // ------------ Function to Remove Ads and Sponsored Elements ------------
  158.  
  159.  
  160. })();