Блог пользователя wisterik

Автор wisterik, 13 лет назад, По-английски

I wrote a user script.

2011/09/27 bug fix.

// ==UserScript==                                                               
// @name           cf_problem_desc                                              
// @version        0.1                                                          
// @namespace      http://codeforces.com/profile/wisterik                       
// @description    changes cf's problem_set link "?order=BY_SOLVED_DESC"        
// @include        http://codeforces.com/*                                      
// @exclude        http://codeforces.com/problemset?*
// @include http://www.codeforces.com/* // @exclude http://www.codeforces.com/problemset?*
// ==/UserScript ==                                                             

(function() {

    var elem = document.evaluate("/html/body/div[3]/div[2]/div[5]/ul/li[4]/a", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0);

    elem.href = elem.href + "?order=BY_SOLVED_DESC";

})();
  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

13 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
I wrote a user script.

Shit happens. (c)

(may be you find some time to express what you wanted to say?)
  • 13 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    (may be you find some time to express what you wanted to say?)
    yes, I'm sorry for my poor English..
    and yet I can't understand "I wrote a user script."'s bad point...

    • 13 лет назад, # ^ |
      Rev. 3   Проголосовать: нравится +5 Проголосовать: не нравится

      It is not bad. Bad is that other users may not know:
      - why you wrote this script;
      - what this script is supposed to do;
      - why you want to tell all about this script;
      - do you have problems with your script;
      - or may be you are advertising your script;
      - in such case where and how it should be used.


      If you created this post for your own purpose and do not intend to show it to other users, you needed click "save as a draft", so that your post would not hang in "Recent actions".

      UPD: it also would be a good idea to provide a link to the script's page at userscript.org if you mean that resource.

      • 13 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится
        thanks a lot for your advice.
        i just wanted to try blog feature...

        I'm sorry I polluted Recent actions. >_<