Force HTML5 Weibo articles

try to take over the world!

  1. // ==UserScript==
  2. // @name Force HTML5 Weibo articles
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://weibo.com/ttarticle/*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Your code here...
  16. var url = window.location.toString();
  17. window.location = url.replace('https://weibo.com/ttarticle/p/show?', 'https://media.weibo.cn/article?');
  18. })();