Last active
December 5, 2015 19:20
-
-
Save andyw330/cf1db52b584ca50e459c to your computer and use it in GitHub Desktop.
remove Dcard "whysoserious" pinned post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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/* | |
| // @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== | |
| 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(); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment