Last active
December 6, 2018 14:46
-
-
Save stucka/3f7e69b8bec748e95590f5c4a04a8e67 to your computer and use it in GitHub Desktop.
Get story ID from a NewsCycle Content file / NCC bookmark
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
Highlight the long ugly bit of code that starts with "javascript" and ends with an ungodly mess of punctuation marks. | |
Hit Control-C to copy. | |
javascript:(function(){var thingyfeedurl = new URLSearchParams(__gh__coreData.pageData.buckets[0].feedURL).get('lopenr');var thingyimgurl = document.querySelectorAll('meta[property="og:image"]')[0].content.split('/AR-')[1].split(".jpg")[0];var thingymessage = "Story ID may be: " + thingyfeedurl;if(thingyimgurl != thingyfeedurl){thingymessage += "\r\nBut could be: " + thingyimgurl};if(window.location.href.split("/")[3].toLowerCase()=="zz"){thingymessage+="\r\nMake sure you look under site code ZZ with that ID"};alert(thingymessage);})(); | |
Now you need to make a new bookmark. | |
In Chrome: Control-Shift-O (like Oscar). Three dots in top-left corner; New bookmark. For name of bookmark, try, whatever, "Find NCC story ID" or something. For URL, click in the box and hit Control-V to paste. Once you have the bookmark you can drag it to your bookmark bar, if you use one. | |
In Firefox: Control-Shift-B (like bacon!). Right-click somewhere in that mess maybe near the top; left-click on New Bookmark. Name it "Find NCC story ID" or something. Under Location, click in the box and hit Control-V to paste. Once you have the bookmark you can drag it to your bookmark bar, if you use one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment