VK wall title text

VK wall content text in tab title.

  1. // ==UserScript==
  2. // @name VK wall title text
  3. // @description VK wall content text in tab title.
  4. // @namespace 2k1dmg@userscript
  5. // @license GPL version 3 or any later version; http://www.gnu.org/licenses/gpl.html
  6. // @include *://vk.com/wall*
  7. // @version 1.1
  8. // @author 2k1dmg
  9. // @grant none
  10. // @noframes
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var groupName = document.querySelector('.author').innerText;
  16. var groupText = document.querySelector('.wall_post_text').innerText;
  17. var titleText = groupName +' - '+ ((groupText.length > 56) ? groupText.slice(0,55)+'\u2026' : groupText);
  18. document.title = titleText.replace(/\n/g, ' ');
  19. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址