SHARE
TWEET

Pixiv Ugoira Save

Galinoa Oct 27th, 2015 (edited) 8 Never
  1. // ==UserScript==
  2. // @name        Pixiv Ugoira Save
  3. // @namespace   Galinoa
  4. // @description Save Ugoira animations from Pixiv as either webm or gif
  5. // @include     http://www.pixiv.net/member_illust.php?mode=medium&illust_id=*
  6. // @version     1
  7. // @grant       none
  8. // @icon        http://www.pixiv.net/favicon.ico
  9. // ==/UserScript==
  10.  
  11. function saveWebm() {
  12.   var a = document.createElement('script');
  13.   a.src = 'http://ohhiru.info/ugoira/ugoira_webm.js';
  14.   document.body.appendChild(a);
  15. }
  16.  
  17. function saveGif() {
  18.   var a = document.createElement('script');
  19.   a.src = 'http://ohhiru.info/ugoira/ugoira_gif.js';
  20.   document.body.appendChild(a);
  21. }
  22.  
  23. if (document.getElementsByTagName('html')[0].innerHTML.indexOf('class="_ugoku') > 0) {
  24.   saveWebm();
  25.   saveGif();
  26. }
RAW Paste Data
Top