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.
remove Dcard "whysoserious" pinned post
// ==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