Skip to content

Instantly share code, notes, and snippets.

@andyw330
Last active December 5, 2015 19:20
Show Gist options
  • Save andyw330/cf1db52b584ca50e459c to your computer and use it in GitHub Desktop.
Save andyw330/cf1db52b584ca50e459c to your computer and use it in GitHub Desktop.

Revisions

  1. andyw330 revised this gist Nov 22, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dcard-whysoserious.user.js
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@
    // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
    // @match https://www.dcard.tw/*
    // @downloadURL https://gist.github.com/andyw330/cf1db52b584ca50e459c/raw/dcard-whysoserious.user.js
    // @updateURL https://gist.github.com/andyw330/cf1db52b584ca50e459c/raw/dcard-whysoserious.user.js
    // @grant GM_addStyle
    // ==/UserScript==

  2. andyw330 revised this gist Nov 22, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dcard-whysoserious.user.js
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    // @author White Hat
    // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
    // @match https://www.dcard.tw/*
    // @downloadURL https://gist.github.com/andyw330/cf1db52b584ca50e459c/raw/dcard-whysoserious.user.js
    // @grant GM_addStyle
    // ==/UserScript==

  3. andyw330 created this gist Nov 22, 2015.
    17 changes: 17 additions & 0 deletions dcard-whysoserious.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    // ==UserScript==
    // @name Dcard Whysoserious
    // @version 1.0
    // @description remove "whysoserious" pinned post
    // @author White Hat
    // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
    // @match https://www.dcard.tw/*
    // @grant GM_addStyle
    // ==/UserScript==

    GM_addStyle('a[ng-href="/f/whysoserious/p/741910"] {display: none !important;}');

    waitForKeyElements ('a[ng-href="/f/whysoserious/p/741910"]', actionFunction);

    function actionFunction(jNode){
    jNode.scope().posts.shift();
    };