wisterik's blog

By wisterik, 13 years ago, In English

I wrote a user script.

2011/09/27 bug fix.

// ==UserScript==                                                               
// @name           cf_problem_desc                                              
// @version        0.1                                                          
// @namespace      http://mirror.codeforces.com/profile/wisterik                       
// @description    changes cf's problem_set link "?order=BY_SOLVED_DESC"        
// @include        http://mirror.codeforces.com/*                                      
// @exclude        http://mirror.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";

})();
  • Vote: I like it
  • -8
  • Vote: I do not like it

13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
I wrote a user script.

Shit happens. (c)

(may be you find some time to express what you wanted to say?)
  • 13 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    (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 years ago, # ^ |
      Rev. 3   Vote: I like it +5 Vote: I do not like it

      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 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it
        thanks a lot for your advice.
        i just wanted to try blog feature...

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