Skip to content

Instantly share code, notes, and snippets.

@oxpa
Last active August 29, 2015 14:03

Revisions

  1. oxpa revised this gist Aug 23, 2014. 1 changed file with 13 additions and 7 deletions.
    20 changes: 13 additions & 7 deletions user.js
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,20 @@
    // @namespace 9gag.com
    // @description test
    // @include http://9gag.com/gag/*
    // @exclude http://9gag.com/hot
    // @exclude http://9gag.com/gif
    // @version 2
    // @run-at document-end
    // @grant none
    // ==/UserScript==
    this.$ = this.jQuery = jQuery.noConflict(true);
    IMG="<img alt='' src='"+$("article").attr("data-entry-thumbnail-url").replace(/92x92/,"700b")+"' class='badge-item-img wasnothere'>";
    IMG2="<img alt='' style='position:absolute; left:0px;top:0px;' src='"+$("article").attr("data-entry-thumbnail-url").replace(/92x92/,"460sa")+"' class='badge-item-img wasnothere'>";

    $('.nsfw-post').replaceWith(IMG+IMG2);
    $('.wasnothere').parent().removeClass("badge-nsfw-entry-cover");
    $('.wasnothere').parent().addClass("badge-post-zoom zoomable");
    $('.wasnothere').attr("href","javascript: void(0)")
    this.$=this.jQuery=jQuery.noConflict(true);
    pst=(window.location.pathname).split("/").slice(-1)[0];
    pst=GAG.Configs._configs.data.fast_entries.items[pst].pinImg;
    IMG="<img alt='' src='"+pst+"' class='badge-item-img wasnothere'>";
    IMG2="<img alt='' style='position:absolute; left:0px;top:0px;' src='"+ pst +"' class='badge-item-img wasnothere'>";
    IMG2=IMG2.replace(/700b/,"460sa");
    $('.nsfw-post').replaceWith(IMG+IMG2);
    $('.wasnothere').parent().removeClass("badge-nsfw-entry-cover");
    $('.wasnothere').parent().addClass("badge-post-zoom zoomable");
    $('.wasnothere').attr("href","javascript: void(0)");
  2. oxpa revised this gist Jul 14, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion user.js
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    // @namespace 9gag.com
    // @description test
    // @include http://9gag.com/gag/*
    // @version 1
    // @version 2
    // @grant none
    // ==/UserScript==
    this.$ = this.jQuery = jQuery.noConflict(true);
  3. oxpa revised this gist Jul 14, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion user.js
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,9 @@
    // ==/UserScript==
    this.$ = this.jQuery = jQuery.noConflict(true);
    IMG="<img alt='' src='"+$("article").attr("data-entry-thumbnail-url").replace(/92x92/,"700b")+"' class='badge-item-img wasnothere'>";
    IMG2="<img alt='' style='position:absolute; left:0px;top:0px;' src='"+$("article").attr("data-entry-thumbnail-url").replace(/92x92/,"460sa")+"' class='badge-item-img wasnothere'>";

    $('.nsfw-post').replaceWith(IMG);
    $('.nsfw-post').replaceWith(IMG+IMG2);
    $('.wasnothere').parent().removeClass("badge-nsfw-entry-cover");
    $('.wasnothere').parent().addClass("badge-post-zoom zoomable");
    $('.wasnothere').attr("href","javascript: void(0)")
  4. oxpa created this gist Jul 14, 2014.
    15 changes: 15 additions & 0 deletions user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    // ==UserScript==
    // @name 9gag.test
    // @namespace 9gag.com
    // @description test
    // @include http://9gag.com/gag/*
    // @version 1
    // @grant none
    // ==/UserScript==
    this.$ = this.jQuery = jQuery.noConflict(true);
    IMG="<img alt='' src='"+$("article").attr("data-entry-thumbnail-url").replace(/92x92/,"700b")+"' class='badge-item-img wasnothere'>";

    $('.nsfw-post').replaceWith(IMG);
    $('.wasnothere').parent().removeClass("badge-nsfw-entry-cover");
    $('.wasnothere').parent().addClass("badge-post-zoom zoomable");
    $('.wasnothere').attr("href","javascript: void(0)")